[dmd-internals] x86_64 ABI questions

David Nadlinger code at klickverbot.at
Thu Jun 7 17:19:18 PDT 2012


On 8 Jun 2012, at 1:42, David Nadlinger wrote:
> - What is the ABI for D vararg functions? (extern(D) void foo(…);)

 From a cursory look at the generated assembly for a few cases, it seems 
like on x86_64, they are rewritten to a normal (c-style) variadic 
function with the TypeInfo of the argument type tuple as fixed parameter 
(the elements of which are later accessible by _arguments) - correct?

David


More information about the dmd-internals mailing list