bugAVR C Runtime Library - Bugs: bug #20248, FAQ#3: clarify which registers are...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #20248: FAQ#3: clarify which registers are safe to be used

Submitter:  Joerg Wunsch <joerg_wunsch>
Submitted:  Sat 23 Jun 2007 10:06:25 PM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Documentation
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Closed
Release:  None Fixed Release:  None

Sun 01 Jul 2007 02:06:25 AM UTC, comment #1: 

Plus the next point is not clean:
Is it needed to save/restore arguments beyound r18-r25 registers?
For example, is it possible in a function
   foo(int a, int b, int c, int d, int e)
to destroy r16/r17 registers?

Dmitry Xmelkov <dmix>
Group administrator
Sat 23 Jun 2007 10:06:25 PM UTC, original submission:  

FAQ#3 says that registers r2 through r15 could be used for
permanently bound registers, while FAQ#13 (ABI description)
mentions that registers down to r8 could be assigned for
argument passing.

This needs to be clarified.

Joerg Wunsch <joerg_wunsch>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arcanum (Updated the item)
  • -email is unavailable- added by dmix (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Submitted the item)
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-10-30 joerg_wunsch StatusNone Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2007-09-12 arcanum Priority5 - Normal 9 - Immediate

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code