Skip to content

Instantly share code, notes, and snippets.

@ysmood
Last active December 22, 2015 23:19
Show Gist options
  • Select an option

  • Save ysmood/6546007 to your computer and use it in GitHub Desktop.

Select an option

Save ysmood/6546007 to your computer and use it in GitHub Desktop.
gcc test: `gcc -O3 tail_recursion.c`
#include "stdio.h"
void foo(x) {
printf("%d\n", ++x);
foo(x);
}
int main(int argc, char const *argv[]) {
foo(1);
return 0;
}
@ysmood

ysmood commented Sep 13, 2013

Copy link
Copy Markdown
Author

gcc -O3 tail_recursion.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment