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
./cling -O0 '#include <stdio.h> ' '#include <time.h>' 'int fib(int n){if(n<=1){return 1;}return fib(n-1)+fib(n-2);} auto start=clock();printf("%d\n",fib(40));printf("%f\n",(clock()-start)/(double)CLOCKS_PER_SEC);'
./cling -O2 '#include <stdio.h> ' '#include <time.h>' 'int fib(int n){if(n<=1){return 1;}return fib(n-1)+fib(n-2);} auto start=clock();printf("%d\n",fib(40));printf("%f\n",(clock()-start)/(double)CLOCKS_PER_SEC);'
Can I use the “-force-interpreter” of LLVM/lli option?
The text was updated successfully, but these errors were encountered:
In my experience, it seems that the performance of cling is the same as that of g++ -O0, so cling uses JIT -O0.
Sorry, something went wrong.
No branches or pull requests
./cling -O0 '#include <stdio.h> ' '#include <time.h>' 'int fib(int n){if(n<=1){return 1;}return fib(n-1)+fib(n-2);} auto start=clock();printf("%d\n",fib(40));printf("%f\n",(clock()-start)/(double)CLOCKS_PER_SEC);'
./cling -O2 '#include <stdio.h> ' '#include <time.h>' 'int fib(int n){if(n<=1){return 1;}return fib(n-1)+fib(n-2);} auto start=clock();printf("%d\n",fib(40));printf("%f\n",(clock()-start)/(double)CLOCKS_PER_SEC);'
Can I use the “-force-interpreter” of LLVM/lli option?
The text was updated successfully, but these errors were encountered: