3 ms·
Clang tends to put everything on the stack at -O0 and actually try to do register allocation only as an optimization.
by anonymoushn 2y ago
Clang tends to put everything on the stack at -O0 and actually try to do register allocation only as an optimization.
- mananaysiempre 2y agoGenerally? Sure, so does GCC, but that’s IME less impactful than a pessimized vectorized routine. (Corollary that I hit literally yesterday: exclusively at -O0, until you step past the opening brace—i.e. the function prologue—GDB will show stack garbage instead of the function arguments passed in registers.)