RE: [GD-General] meaning of sizeof(int) on all plateform
Brought to you by:
vexxed72
From: Gareth L. <GL...@cl...> - 2003-06-27 08:59:27
|
This one is more for the archives. The following is wrong. It happens to be right for win32, and maybe for = some other platforms, but is not guarenteed. The only correct thing to assume is long >=3D int >=3D short >=3D char also sizeof (unsigned T) =3D=3D sizeof (signed T)=20 btw, sizeof(pointer) isn't a real value, it is perfectly valid for a = certain platform to have differant sizes of pointers, so sizeof (void*) is not always =3D=3D sizeof(int*). -----Original Message----- From: mitea [mailto:mi...@bb...] Sent: 26 June 2003 22:38 To: gam...@li... Subject: RE: [GD-General] meaning of sizeof(int) on all plateform sizeof(int)=3Dsizeof(void*)=3Dsizeof(pointer) sizeof(short)=3Dsizeof(WORD)=3D2 sizeof(long)=3Dsizeof(DWORD)=3D4 sizeof(__int64)=3Dsizeof(LARGE_INTEGER)=3D8 sizeof(char)=3Dsizeof(BYTE)=3D1 ---------------------------------- Peace and love, Tweety mi...@bb... - twe...@us... YahooID: tweety_04_01 -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Lagarde S=E9bastien Sent: Thursday, June 26, 2003 9:36 PM To: gam...@li... Subject: [GD-General] meaning of sizeof(int) on all plateform Hello all,=20 I have some problem to define what represent sizeof(int). IMO sizeof(int) =3D=3D memory bus address width but on platforme like PS2, you have a bus of 128 and sizeof(int) =3D=3D = 32. i have seen elsewherre that sizeof(int) =3D=3D size of a register. Is someone have some information on this point ? thanks ------------------------------- Lagarde S=E9bastien Neko entertainment Junior programmer |