Hi, Henrik Nordstrom wrote: > On Mon, 11 Jul 2005, Greg Haerr wrote: > > >: For one thing, sizeof(void*) is much larger > >: than sizeof(int) on the most common 64-bit architectures. > > > >Interesting discussion. What's sizeof(void*) on these > >common 64-bit architectures? > > LP64 platforms commonly has > > sizeof(void *) == 8 > sizeof(long long) == 8 > sizeof(long) == 8 > sizeof(int) == 4 > sizeof(short) == 2 > sizeof(char) == 1
IIRC m$ decided to go with LLP64 model, meaning long stays 32bit. Anyway i don't like neither of the choices, imho ILP64 would have been the way to go... This no-guarantee-about-sizes-in-C thing begins to hurt nowadays ;) Maybe it is really best to use special types like int_fast32_t these times... (or role your own set of types to replace them with the appropriate type depending on compiler and arch). Alex (beastd) _______________________________________________ Tinycc-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/tinycc-devel
