We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test.c
#define PERROR(fmt) \ do { \ char dbg_buffer[4096 +1]={0}; \ } while(0); void foo() { PERROR("/opt/1"); PERROR("/opt/2"); PERROR("/opt/3"); }
clang
% clang test.c -o test.s -S -O0 foo: // @foo stp x29, x30, [sp, #-32]! // 16-byte Folded Spill str x28, [sp, #16] // 8-byte Folded Spill mov x29, sp sub sp, sp, #3, lsl #12 // =12288 ...
gcc
% gcc test.c -o test.s -S -O0 foo: mov x12, 4128 sub sp, sp, x12 ...
https://godbolt.org/z/od5Yc1zKr clang is 12288,while gcc is only 4128. It seems that clang is (PERROR nums * struct size), and gcc is more reasonable.
The text was updated successfully, but these errors were encountered:
We currently don't do stack coloring at -O0.
(See also #45725 for more discussion of lifetime intrinsics...)
Sorry, something went wrong.
Got it, thank you.
No branches or pull requests
test.c
clang
gcc
https://godbolt.org/z/od5Yc1zKr
clang is 12288,while gcc is only 4128. It seems that clang is (PERROR nums * struct size), and gcc is more reasonable.
The text was updated successfully, but these errors were encountered: