30 ms·
Of which decade is this post? I cannot think of any modern architecture which still passes args on the stack. Itanium? Stone age
by rurban 6mo ago
Of which decade is this post? I cannot think of any modern architecture which still passes args on the stack.
Itanium? Stone age
- jcranmer 6mo agoIf you have 29 arguments, I assure that you some of them are on the stack in nearly every architecture in use. Also, certain types as parameters also get passed on the stack (usually types larger than a register, or in C++ code, objects with nontrivial constructors or destructors).
- rurban 6mo agoSure, but he still came up with a 2005 blog post, and attached a 2026 to it. No optimizing C compiler cares for the 2nd arg, when it's a register anyway. And if the 1st is constant, the dead branch is folded away. So the 2nd arg is dead
- inkyoto 6mo agoThe vast majority of virtual machines, including JVM and .NET, are stack based. And, whilst compiling C and C++ the JVM / .NET CLR byte codes is very uncommon, both VM's have become very popular compilation targets for other programming languages.