Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

function calls

Altera_Forum
Honored Contributor II
1,093 Views

Can anyone point me to where to look up what gcc's function call semantics on the nios 2 are? 

 

Specifically, I need to write the platform-dependent part of jamvm so that it knows how to pass arguments and take return values from function calls to native libraries. This is fairly similar to what libffi does, though I think less complicated than libffi. 

 

But basically I need to know whether arguments are passed by register, stack, or both, and how return values are returned. 

 

Any idea where I could find this out without having to resort to writing a short C program and using assembly to locate the values? :-) 

 

In particular, if this is documented anywhere, I'd be very grateful for a pointer to the documentation. 

 

Thanks.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
406 Views

An alternative way to ask the question: where is the nios2/uClinux C ABI documented?

0 Kudos
Reply