Please tell me function call mechanism in c and what is better bet. return and passing pointer argument to function...
Function call mechanism in c
Jul 12, 2007
4 Replies
You forgot to say how many marks the answer is worth.
All the information is here
formatting link
Alternatively, the answer will be in your course notes and if you'd bothered to turn up for class you would know this.
Read the paragraph before the question section
Meindert
This depends on the processor and the compiler. Many processor makers publish the specs for a binary call compatibility standard. This ensures that libraries made by various compilers can be interoperable. Conformance is usually voluntary, of course.
If you make a compiler and you don't want to work with libraries made by others then its entirely up to you how you define the calling conventions.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required