bugAVR C Runtime Library - Bugs: bug #35240, Incomplete Description of Calling...


bug #35240: Incomplete Description of Calling Convention

Submitted by:  Don Kinzer <dkinzer>
Submitted on:  Wed 04 Jan 2012 11:42:04 PM UTC  
Category: DocumentationSeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: Documentation
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: 1.6.7Fixed Release: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 04 Nov 2012 07:49:44 PM UTC, comment #1:

For a complete description of the calling conversion, see the avr-gcc AVI in the GCC Wiki:


Georg-Johann Lay <gjlayde>
Wed 04 Jan 2012 11:42:04 PM UTC, original submission:

The avr-libc documentation section "11.14 What registers are used by the C compiler?" is incomplete in that it does not describe the case where a function returns a large (>64 bit) data item. As far as I can tell, in this (perhaps unusual) case r25:24 contains a pointer to a buffer in which to return the data and all parameters (if any) are shifted by two registers (i.e. a first uint16_t parameter is in r23:22, etc.). Large pointer support may change the register use in this case.

This observation applies to the documentation accompanying avr-libc v1.6.7 and v1.8.0.

Don Kinzer <dkinzer>


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by gjlayde (Posted a comment)
  • -unavailable- added by dkinzer (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 16 Nov 2012 06:37:15 PM UTCarcanumPriority5 - Normal=>9 - Immediate

    Back to the top

    Powered by Savane 3.1-cleanup1