Skip to content

Instantly share code, notes, and snippets.

@dcci
Last active November 19, 2018 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcci/c99d8f587e9790df4be0bea66c9112ee to your computer and use it in GitHub Desktop.
Save dcci/c99d8f587e9790df4be0bea66c9112ee to your computer and use it in GitHub Desktop.
optimized out arguments
__attribute__((noinline))
int fn1 (long int x, long int y, long int z) {
int l = x * 2;
int q = y * z;
return l + q;
}
__attribute__((noinline)) long int
fn2 (long int a, long int b, long int c)
{
long int q = 2 * a;
return fn1 (5, 6, 7);
}
int main(void) {
return fn2(14, 23, 34);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment