09:28) [EMAIL PROTECTED]:~ $ tcc -v
tcc version 0.9.23
09:29) [EMAIL PROTECTED]:~ $ cat -n a.c
1 #include <inttypes.h>
2 int main(void) {
3 uint8_t * a, b[] = { 1, 1, 0, 0 };
4 a = b;
5 printf("%u\n", *((uint32_t *)&a[0]));
6 printf("%u\n", *((uint32_t *)a));
7 return 0;
8 }
09:29) [EMAIL PROTECTED]:~ $ gcc a.c && ./a.out
257
257
09:29) [EMAIL PROTECTED]:~ $ tcc -run a.c
1
257
Took me FOREVER to find that this was why my tcc compilation of MPlayer was
misbehaving...
- ods15
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel