diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-21 04:30:10 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-21 04:30:10 -0800 |
commit | 8014f25f6db719fa62336f997963532a14c568f6 (patch) | |
tree | c691ee91a3a2d452a2bd24ac89a8c717beaa7af7 /arch_flags.c | |
parent | c44cc5de9429e6b4f1c05045fcf43c9cb96437b5 (diff) | |
download | abc-8014f25f6db719fa62336f997963532a14c568f6.tar.gz abc-8014f25f6db719fa62336f997963532a14c568f6.tar.bz2 abc-8014f25f6db719fa62336f997963532a14c568f6.zip |
Major restructuring of the code.
Diffstat (limited to 'arch_flags.c')
-rw-r--r-- | arch_flags.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch_flags.c b/arch_flags.c new file mode 100644 index 00000000..a2945ae0 --- /dev/null +++ b/arch_flags.c @@ -0,0 +1,17 @@ +#include <stdio.h> + +int main() +{ + if (sizeof(void*) == 8) // Assume 64-bit Linux if pointers are 8 bytes. + printf("-DLIN64 "); + else + printf("-DLIN "); + + printf("-DSIZEOF_VOID_P=%d -DSIZEOF_LONG=%d -DSIZEOF_INT=%d\n", + (int)sizeof(void*), + (int)sizeof(long), + (int)sizeof(int) ); + + + return 0; +} |