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
Input: int foo() { return 1; } Clang -O2/-Os output:
int foo() { return 1; }
foo: 0: 04 12 push r4 2: 04 41 mov r1, r4 4: 1c 43 mov #1, r12 6: 34 41 pop r4 8: 30 41 ret
GCC:
foo: 0: 5c 43 mov.b #1, r12 2: 30 41 ret
The text was updated successfully, but these errors were encountered:
Interesting. Looks like we default to frame pointer? What does clang -fomit-frame-pointer do?
Sorry, something went wrong.
Yep, -fomit-frame-pointer does exactly what GCC does by default.
No branches or pull requests
Input:
int foo() { return 1; }
Clang -O2/-Os output:
GCC:
The text was updated successfully, but these errors were encountered: