What C/C++ compiler can use push pop instructions for creating local variables, instead of just increasing esp once?
I belive push/pop instructions will result in a more compact code, maybe will even run slightly faster. This requires disabling stack frames as well though. To check this, I will need to either rewrite a large enough program in assembly by hand (to compare them), or to install and study a few other compilers (to see if they have an option for this, and to compare the results). Here is the forum topic about this and simular problems. In short, I want to understand which code is better. Code like this: sub esp, c mov [esp+8],eax mov [esp+4],ecx mov [esp],edx ... add esp, c or code like this: