Displaying 1 result from an estimated 1 matches for "sub_4012e0".
2012 Jul 05
0
[LLVMdev] clang optimizer does not remove unused/uneeded variables(and accesses) from global scope
...ord;
int main(int argc, char** argv)
{
dword_t random = (dword_t)argv;
byte = (byte_t)random;
dword = (dword_t)random;
dword_t result = 3*(byte+dword);
return result;
}
-------
compiled with "clang -O3 test.c"
produces this code for the main
.text:004012E0 sub_4012E0 proc near ; CODE XREF:
sub_401020+91
.text:004012E0
.text:004012E0 arg_4 = dword ptr 0Ch
.text:004012E0
.text:004012E0 push ebp
.text:004012E1 mov ebp, esp
.text:004012E3 call sub_4014C0
.text:004012E8...