Displaying 2 results from an estimated 2 matches for "gcc_custom".
2015 Jul 13
5
[LLVMdev] Poor register allocations vs gcc
...c){
a += 71;
int b = 0;
if (a == 56){
b = 69;
b += ci(a);
}
puts("ok");
return a + b;
}
--------------------------------------
Compiled that way (using the versions I downloaded and eventually compiled) :
clang_custom -std=c11 -O3 -march=native -c app2.c -S
against gcc:
gcc_custom -std=c11 -O3 -march=native -c app2.c -S
Versions (latest for each, downloaded just a few days ago):
gcc : 5.1
clang/llvm: clang+llvm-3.6.1-x86_64-apple-darwin
Host:
osx yosemite.
The assembly (cut to the essential):
LLVM:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %r14d
l...
2015 Jul 13
2
[LLVMdev] Poor register allocations vs gcc
...šššššreturn a + b;<br />š}<br />š--------------------------------------<br /><br />šCompiled that way (using the versions I downloaded and eventually compiled) :<br />šclang_custom -std=c11 -O3 -march=native -c app2.c -S<br /><br />šagainst gcc:<br />šgcc_custom -std=c11 -O3 -march=native -c app2.c -S<br /><br />šVersions (latest for each, downloaded just a few days ago):<br />šgcc : 5.1<br />šclang/llvm: clang+llvm-3.6.1-x86_64-apple-darwin<br /><br />šHost:<br />šosx yosemite.<br /><br />šThe assembly...