Re: [GD-General] meaning of sizeof(int) on all plateform
Brought to you by:
vexxed72
From: J C L. <cl...@ka...> - 2003-06-30 01:58:42
|
On Thu, 26 Jun 2003 15:24:45 -0700 Evan Robinson <ev...@en...> wrote: > If you are trying to make sure that your code will run equally > efficiently on *all platforms* and *all compilers*, you are > (probably=20 wasting your time) probably best off relying on "int" and > "void *" and not worrying about how they match to the platform until > you have a=20 specific platform and compiler combination in mind. If you are going that route, also make sure that you're not assuming that the local system has a flat memory model, that pointers are simple integral types, that two pointers which have different internal bit-patterns are necessarily unequal (they can be), that the comparison of two pointers not from the same allocation buffer is valid (its not), and that NULL is all bits zero at run time (it may not be). -- J C Lawrence ---------(*) Satan, oscillate my metallic sonatas. cl...@ka... He lived as a devil, eh? http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live. |