Displaying 1 result from an estimated 1 matches for "dword_t".
Did you mean:
word_t
2012 Jul 05
0
[LLVMdev] clang optimizer does not remove unused/uneeded variables(and accesses) from global scope
...clang 3.1
i've downloaded clang from http://llvm.org/releases/download.html ->
Experimental Clang Binaries for Mingw32/x86
clang --version
clang version 3.1 (branches/release_31)
Target: i686-pc-mingw32
Thread model: posix
----- test.c
typedef unsigned char byte_t;
typedef unsigned int dword_t;
byte_t byte;
dword_t dword;
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...