Please tell me function call mechanism in c and what is better bet. return and passing pointer argument to function...
- posted
16 years ago
Please tell me function call mechanism in c and what is better bet. return and passing pointer argument to function...
You forgot to say how many marks the answer is worth.
All the information is here
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.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.