News for hackers. Stuff that matters.
Re:What is “the stack”? by gshrikant on Thursday March 03, 2016 @04:12AM (#11215780)
In turn, isn't LLVM's stack management and argument passing dictated by the hardware's ABI? ARM, for one, publishes its calling convention in AAPCS (ARM Architecture Procedure Call Standard) which establishes the calling convention on the C stack.
Re:What is “the stack”? by lmm on Thursday March 03, 2016 @07:31AM (#11216412)
If the hardware manufacturer publishes an ABI most people will use it for the sake of convenience and interoperability. But it's not like the ARM police can stop you from using a different calling convention for your language if you want.
Re:What is “the stack”? by derefr on Thursday March 03, 2016 @05:15AM (#11215983)
ARM and modern x64 have pretty rigorously-defined calling conventions, yeah. x86, on the other hand, has six or seven different ones, and it was up to you as a C programmer to choose which one to use for each given function, by sticking e.g. a __stdcall or a __fastcall in your typespec.
Re:What is “the stack”? by atilaneves on Thursday March 03, 2016 @08:50AM (#11216780)
x64 on Linux has a different calling convention than x64 on Windows.