Explore >> Select a destination


You are here

idea.popcount.org
| | yurisk.info
10.7 parsecs away

Travel
| | Yuri Slobodyanyuk's blog on IT Security and Networking -
| | blog.jak-linux.org
12.8 parsecs away

Travel
| | The following program, compiled with clang 1.1, runs 500 times faster than the gcc4.5-compiled code (in both cases with -O2): #include #define len 1000000000L unsigned long f(unsigned long a, unsigned long b) __attribute__((noinline)); int main() { printf("%lu\n", f(0, 2*len)); return 0; } unsigned long f(unsigned long a, unsigned long b) { unsigned long sum = 0; for (; a < b; a++) sum += a; return sum; } Now, I would be interested to see what's happening here. I took a look at the assembler code both compilers create, but the only thing I found out so far is that gcc's assembly is easier to understand - 50 lines (gcc) vs 134 lines (clang). If someone knows the answer, please tell me.
| | blog.httrack.com
11.4 parsecs away

Travel
| | I Found A Bug In strncat() 31 August 2014 Yes, A Bug This code wo...
| | guillaume.baierouge.fr
68.1 parsecs away

Travel
|