Sujet : Re: Calling conventions (particularly 32-bit ARM)
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.archDate : 09. Jan 2025, 09:38:32
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2025Jan9.093832@mips.complang.tuwien.ac.at>
References : 1 2 3 4
User-Agent : xrn 10.11
Stefan Monnier <
monnier@iro.umontreal.ca> writes:
AFAIK in these cases the same compiler generates the code for the
function and for the calls, so it should be pretty much free to use any
calling convention it likes.
With separate compilation, the compiler does not know which other
compiler generates the code for the caller of a function or the callee
of a function. ABI Calling conventions exist in order to make code by
different compilers (whether the same language or a different one)
interoperable.
- anton
-- 'Anyone trying for "industrial quality" ISA should avoid undefined behavior.' Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>