gamedevlists-general Mailing List for gamedev (Page 41)
Brought to you by:
vexxed72
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(28) |
Nov
(13) |
Dec
(168) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(51) |
Feb
(16) |
Mar
(29) |
Apr
(3) |
May
(24) |
Jun
(25) |
Jul
(43) |
Aug
(18) |
Sep
(41) |
Oct
(16) |
Nov
(37) |
Dec
(208) |
2003 |
Jan
(82) |
Feb
(89) |
Mar
(54) |
Apr
(75) |
May
(78) |
Jun
(141) |
Jul
(47) |
Aug
(7) |
Sep
(3) |
Oct
(16) |
Nov
(50) |
Dec
(213) |
2004 |
Jan
(76) |
Feb
(76) |
Mar
(23) |
Apr
(30) |
May
(14) |
Jun
(37) |
Jul
(64) |
Aug
(29) |
Sep
(25) |
Oct
(26) |
Nov
(1) |
Dec
(10) |
2005 |
Jan
(9) |
Feb
(3) |
Mar
|
Apr
|
May
(11) |
Jun
|
Jul
(39) |
Aug
(1) |
Sep
(1) |
Oct
(4) |
Nov
|
Dec
|
2006 |
Jan
(24) |
Feb
(18) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
(14) |
Aug
(29) |
Sep
(2) |
Oct
(5) |
Nov
(4) |
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(11) |
Sep
(9) |
Oct
(5) |
Nov
(4) |
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(34) |
Jun
|
Jul
(9) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Daniel V. <vo...@ep...> - 2003-06-28 19:54:43
|
> I state that sizeof(T*) is the same, whatever T might be. Am I wrong? I'm not aware of any implementation where this is not the case though the standard doesn't guarantee it. -- Daniel, Epic Games Inc. |
From: mitea <mi...@bb...> - 2003-06-28 11:50:15
|
> -----Original Message----- > From: gam...@li... > [mailto:gam...@li...] On > Behalf Of Gareth Lewin > Sent: Friday, June 27, 2003 11:45 AM > To: gam...@li... > Subject: RE: [GD-General] meaning of sizeof(int) on all plateform > > > 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 == sizeof(int*). Say again I state that sizeof(T*) is the same, whatever T might be. Am I wrong? ---------------------------------- Peace and love, Tweety mi...@bb... - twe...@us... YahooID: tweety_04_01 |
From: Andrew G. <ag...@cl...> - 2003-06-28 05:10:07
|
Interesting WinXP client numbers there, I'd have expected the Win2k number to be far greater instead of being outpaced by versions of Win9x. Andy @ Climax Brighton > -----Original Message----- > From: Daniel Vogel [mailto:vo...@ep...] > Sent: Friday, June 27, 2003 8:02 PM > To: gam...@li... > Subject: [GD-General] OS usage statistics > > > I figured the below OS usage statistics for Unreal Tournament 2003 > (gathered at 6 PM EST, 06/10/2003) might be useful to some > folks and I'd > be curious to see numbers for other online games if people are willing > to share. > > Dedicated servers currently online (absolute numbers). > > Linux/x86 925 > Win2K 859 > Win98/WinME 28 > WinNT 38 > WinXP 299 > > Last OS used for unique clients connecting to masterserver > (percentages). > > Linux/x86 0.73 > Win2K 10.70 > Win98/WinME 15.35 > WinNT 0.01 > WinXP 73.19 > > -- Daniel, Epic Games Inc. > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 1203_01/01 _______________________________________________ Gamedevlists-general mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=557 |
From: Daniel V. <vo...@ep...> - 2003-06-28 03:01:56
|
I figured the below OS usage statistics for Unreal Tournament 2003 (gathered at 6 PM EST, 06/10/2003) might be useful to some folks and I'd be curious to see numbers for other online games if people are willing to share. Dedicated servers currently online (absolute numbers). Linux/x86 925 Win2K 859 Win98/WinME 28 WinNT 38 WinXP 299 Last OS used for unique clients connecting to masterserver (percentages). Linux/x86 0.73 Win2K 10.70 Win98/WinME 15.35 WinNT 0.01 WinXP 73.19 -- Daniel, Epic Games Inc. |
From: Daniel V. <vo...@ep...> - 2003-06-28 02:46:52
|
> I can easily imagine an embedded architecture having > different length pointers for code pointers and data pointers, > as well. In that case, I assume (always dangerous) that > void * would be large enough to hold the largest pointer, as > Jay suggests, above. Section 3.9.2.4 of the ANSI C++ standard guarantees that a void pointer can hold any object pointer. -- Daniel, Epic Games Inc. |
From: Evan R. <ev...@en...> - 2003-06-28 02:23:31
|
On Friday, June 27, 2003, at 04:52 PM, Jay Woodward wrote: > Hold on -- it seems to me that the existence of forward declaration > necessitates that all pointers be the same size. > > I suppose you wouldn't lose information when casting, as long as it's > guaranteed that sizeof(void*) >= sizeof(any other pointer). Still, my > understanding has always been that all pointers are the same size. Once again, the segmented architecture of the 8088 under DOS is a counterexample. There are "near pointers" which are 16 bit offsets into a standardized segment, and "far pointers" which are 32 bit segment:offset pairs (which makes comparing far pointers interesting, BTW). I can easily imagine an embedded architecture having different length pointers for code pointers and data pointers, as well. In that case, I assume (always dangerous) that void * would be large enough to hold the largest pointer, as Jay suggests, above. Evan >> -----Original Message----- >> From: Gareth Lewin [mailto:GL...@cl...] >> Sent: Friday, June 27, 2003 1:45 AM >> To: gam...@li... >> Subject: RE: [GD-General] meaning of sizeof(int) on all plateform >> >> >> 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 == sizeof(int*). > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/ > 01 > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_idU7 > > > -- Engines of Mischief Consulting <http://www.enginesofmischief.com> Mischievous Ramblings <http://www.enginesofmischief.com/blogs/ramblings> The Engine of Mischief <http://www.enginesofmischief.com/engine> Mischief's Travelblog <http://www.enginesofmischief.com/blogs/travelblog> Today's Oxymoron: Act naturally |
From: Jay W. <woo...@Ro...> - 2003-06-27 23:52:11
|
Hold on -- it seems to me that the existence of forward declaration necessi= tates that all pointers be the same size. I suppose you wouldn't lose information when casting, as long as it's guara= nteed that sizeof(void*) >=3D sizeof(any other pointer). Still, my underst= anding has always been that all pointers are the same size. =20 > -----Original Message----- > From: Gareth Lewin [mailto:GL...@cl...] > Sent: Friday, June 27, 2003 1:45 AM > To: gam...@li... > Subject: RE: [GD-General] meaning of sizeof(int) on all plateform >=20 >=20 > btw, sizeof(pointer) isn't a real value, it is perfectly=20 > valid for a certain > platform to have differant sizes of pointers, so sizeof (void*) is not > always =3D=3D sizeof(int*). |
From: <phi...@pl...> - 2003-06-27 16:34:05
|
> FWIW, sizeof(long)==8 with gcc on e.g. Hammer. That's eminently sensible. I seem to remember reading in an issue of the C/C++ Journal that there were new bit-specific type identifiers in one of the upcoming draft standards (possibly the C one) that looked disturbingly like templates. Something like int<64> although probably much more wordy, and introducing a whole new set of very long reserved words. Still, at least it's one of those problems that only rears it's head when you assimilate a new platform, Cheers, Phil |
From: Daniel V. <vo...@ep...> - 2003-06-27 13:30:24
|
> MSDN states that on Win64, sizeof(int)==4, sizeof(long)==4 > (in the interest of keeping most code working), but > sizeof(void *)==8. So code that assumes you can store > a pointer in the memory for the int will need to be reworked. FWIW, sizeof(long)==8 with gcc on e.g. Hammer. -- Daniel, Epic Games Inc. |
From: Ivan-Assen I. <as...@ha...> - 2003-06-27 09:31:18
|
> On 64bit windows, int is 64bit=>8 bytes. It's the > size of the memory address. Wrong! MSDN states that on Win64, sizeof(int)==4, sizeof(long)==4 (in the interest of keeping most code working), but sizeof(void *)==8. So code that assumes you can store a pointer in the memory for the int will need to be reworked. Microsoft have made the (IMO correct) assumption that the most important benefit of a 64-bit platform is not integer calculation with 64 bits, but rather, 64-bit addressing. |
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 |
From: Evan R. <ev...@en...> - 2003-06-26 22:25:11
|
From: Evan Robinson <ero...@en...> Date: Thu Jun 26, 2003 2:36:27 PM US/Pacific To: gam...@li... Subject: Re: [GD-General] meaning of sizeof(int) on all plateform On Thursday, June 26, 2003, at 01:12 PM, Lagarde S=E9bastien wrote: > no confusion here, > Following suestion here are purelly curiosity: > =A0 > i precise the question: > =A0 > if you have a 32 bit architecture (pentium) > if you want make fast arithmetic operation, you > must work with type which have a size of 32bits. > These type have the same size of a register and the > arithmetic operation can be optimize... > typically, this is type "int" > =A0 > on a 64 bit architecture (itanium) > register are 64 bit and int are 64bit too > =A0 > so if you have a program which perform the following code: > =A0 > // imaginary define > // the goal of this define is to have s32 on 32bits > #ifdef __32Bit__ > typedef int s32 > #else // __64bit__ > typedef short u32=A0 // just for exemple > #endif > =A0 > void add(s32 a1, s32 a2) > { > =A0=A0=A0 return a1 + a2; > } > =A0 > the performance can be poor on a 64bit architecture because we are not > in the native size of the register > =A0 > if we have this code > =A0 > void add(int a1,=A0int a2) > { > =A0=A0=A0 return a1 + a2; > } > =A0 > no problem, cause "int" is native to the architecture Not necessarily. "int" is a logical construct *of the compiler*, not=20 *of the platform*. You *hope* that your compiler vendor has made int=20 the most efficient size for general purpose integer math. > it is my imagination, I'am in the wrong way ? > =A0 > another question, is sizeof(int) =3D=3D sizeof(void*) ? > sizeof(void*) must be : size of memory bus address > so sizeof(int).... Once again, not necessarily. "void *" is a logical construct "of the=20 compiler*. You would expect a void * to be as many bits as necessary=20 to express the entire memory footprint of the computer architecture,=20 but there is no reason why it couldn't be either larger or smaller,=20 depending upon the compiler vendor. A straightforward (if evil)=20 example would be the segmented 8088 architecture, where the base memory=20= footprint was 1024K, but the RAM footprint was generally 640K, and full=20= pointers were 32 bits (16 bit segment, 16 bit offset). A 20-bit=20 pointer would have sufficed for the base memory footprint, but could=20 not have properly expressed all segment:offset pairs If you are trying to make sure that your code will run equally=20 efficiently on *all platforms* and *all compilers*, you are (probably=20 wasting your time) probably best off relying on "int" and "void *" and=20= not worrying about how they match to the platform until you have a=20 specific platform and compiler combination in mind. > -------------------------- > Lagarde S=E9bsatien > Neko entertainment > Junior programmer > > ----- Original Message ----- > From: Mick West > To: gam...@li... > Sent: Thursday, June 26, 2003 8:48 PM > Subject: RE: [GD-General] meaning of sizeof(int) on all plateform > > 128 bits would give you 16 bytes, not 32. > =A0 > On the PS2 an int is generally 32 BITS,=A0 (4 bytes), which is maybe=20= > where the confusion arose. > =A0 > Mick > > > -----Original Message----- > From: gam...@li...=20 > [mailto:gam...@li...] On Behalf Of=20= > Gareth Lewin > Sent: Thursday, June 26, 2003 11:42 AM > To: gam...@li... > Subject: RE: [GD-General] meaning of sizeof(int) on all plateform > > sizeof(int) =3D size of integer value. As defined by the compiler=20 > vendor. There is no "Correct" way to set the size of int. > > -----Original Message----- > From: Lagarde S=E9bastien [mailto:Lag...@wa...] > Sent: 26 June 2003 19:36 > To: gam...@li... > Subject: [GD-General] meaning of sizeof(int) on all plateform > > Hello all, > I have some problem to define what represent sizeof(int). > =A0 > IMO sizeof(int) =3D=3D memory bus address width > =A0 > but on platforme like PS2, you have a bus of 128 and sizeof(int) =3D=3D = 32. > =A0 > i have seen elsewherre that sizeof(int) =3D=3D size of a register. > =A0 > Is someone have some information on this point ? > thanks > ------------------------------- > Lagarde S=E9bastien > Neko entertainment > Junior programmer > =A0 > > -- Engines of Mischief Consulting =20 <http://www.enginesofmischief.com> Mischievous Ramblings =20 <http://www.enginesofmischief.com/blogs/ramblings> The Engine of Mischief =20 <http://www.enginesofmischief.com/engine> Mischief's Travelblog =20 <http://www.enginesofmischief.com/blogs/travelblog> I pledge allegiance to the flag of the multinational corporations and to the profit for which they stand, one interlocking directorate under no government, indivisible, with monopoly and cheap labor for=20 all. -- U. Utah Phillips, "Stupid's Pledge" |
From: Jones, C. <CJ...@bl...> - 2003-06-26 22:20:26
|
This is all the standard has to say on the size of ints: "There are four signed integer types: "signed char", "short int", "int", and "long int." In this list, each type provides at least as much storage as those preceding it in the list. Plain ints have the natural size suggested by the architecture of the execution environment (1); the other signed integer types are provided to meet special needs." "(1) that is, large enough to contain any value in the range of INT_MIN and INT_MAX, as defined in the header <climits>." In other words, the result of sizeof(int) is never guaranteed to be of a certain size. Although I believe the ISO C99 standard added new header file, stdint.h, which declares some typedefs for specific sized integer types. If only more compilers would follow the standards... Chris -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of mitea Sent: Thursday, June 26, 2003 2:38 PM To: gam...@li... Subject: RE: [GD-General] meaning of sizeof(int) on all plateform sizeof(int)=sizeof(void*)=sizeof(pointer) sizeof(short)=sizeof(WORD)=2 sizeof(long)=sizeof(DWORD)=4 sizeof(__int64)=sizeof(LARGE_INTEGER)=8 sizeof(char)=sizeof(BYTE)=1 ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Gamedevlists-general mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU7 |
From: Mat N. \(BUNGIE\) <mat...@mi...> - 2003-06-26 21:47:58
|
Those relationships aren't guaranteed in the standard. MSN -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of mitea Sent: Thursday, June 26, 2003 2:38 PM 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 |
From: mitea <mi...@bb...> - 2003-06-26 21:38:39
|
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 =20 ---------------------------------- 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). =20 IMO sizeof(int) =3D=3D memory bus address width =20 but on platforme like PS2, you have a bus of 128 and sizeof(int) =3D=3D = 32. =20 i have seen elsewherre that sizeof(int) =3D=3D size of a register. =20 Is someone have some information on this point ? thanks ------------------------------- Lagarde S=E9bastien Neko entertainment Junior programmer =20 |
From: <phi...@pl...> - 2003-06-26 21:25:00
|
> another question, is sizeof(int) == sizeof(void*) ? No, not guaranteed to be, but often is. Cheers, Phil |
From: Ivan G. <dea...@ga...> - 2003-06-26 20:43:54
|
AFAIK, it depends on the OS and processor architecture. So on DOS, it was 16bit, or 2 bytes, on Windows >3.x, it is 32bit, or 4 bytes. On 64bit windows, int is 64bit=>8 bytes. It's the size of the memory address. ------------------------------------------------- Leave all your expectations behind, or they'll pull you down on your way to the top. ------------------------------------------------- -Ivan |
From: <Lag...@wa...> - 2003-06-26 20:14:39
|
Messageno confusion here,=20 Following suestion here are purelly curiosity: i precise the question: if you have a 32 bit architecture (pentium) if you want make fast arithmetic operation, you must work with type which have a size of 32bits. These type have the same size of a register and the arithmetic operation can be optimize... typically, this is type "int" on a 64 bit architecture (itanium)=20 register are 64 bit and int are 64bit too so if you have a program which perform the following code: // imaginary define // the goal of this define is to have s32 on 32bits #ifdef __32Bit__ typedef int s32 #else // __64bit__ typedef short u32 // just for exemple #endif void add(s32 a1, s32 a2) { return a1 + a2; } the performance can be poor on a 64bit architecture because we are not in the native size of the register if we have this code void add(int a1, int a2) { return a1 + a2; } no problem, cause "int" is native to the architecture it is my imagination, I'am in the wrong way ? another question, is sizeof(int) =3D=3D sizeof(void*) ? sizeof(void*) must be : size of memory bus address so sizeof(int).... -------------------------- Lagarde S=E9bsatien Neko entertainment Junior programmer ----- Original Message -----=20 From: Mick West=20 To: gam...@li...=20 Sent: Thursday, June 26, 2003 8:48 PM Subject: RE: [GD-General] meaning of sizeof(int) on all plateform 128 bits would give you 16 bytes, not 32. On the PS2 an int is generally 32 BITS, (4 bytes), which is maybe = where the confusion arose. Mick -----Original Message----- From: gam...@li... = [mailto:gam...@li...] On Behalf Of = Gareth Lewin Sent: Thursday, June 26, 2003 11:42 AM To: gam...@li... Subject: RE: [GD-General] meaning of sizeof(int) on all plateform sizeof(int) =3D size of integer value. As defined by the compiler = vendor. There is no "Correct" way to set the size of int. -----Original Message----- From: Lagarde S=E9bastien [mailto:Lag...@wa...] Sent: 26 June 2003 19:36 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 |
From: Peter L. <pe...@to...> - 2003-06-26 19:52:31
|
although according to K&R it's "typically the natural size" of integer values on that machine. So for (certain measures of) efficiency, it's the recommended size to use. Peter -----Original Message----- From: gam...@li... [mailto:gam...@li...]On Behalf Of Gareth Lewin Sent: Thursday, June 26, 2003 11:42 AM To: gam...@li... Subject: RE: [GD-General] meaning of sizeof(int) on all plateform sizeof(int) = size of integer value. As defined by the compiler vendor. There is no "Correct" way to set the size of int. -----Original Message----- From: Lagarde Sébastien [mailto:Lag...@wa...] Sent: 26 June 2003 19:36 To: gam...@li... Subject: [GD-General] meaning of sizeof(int) on all plateform Hello all, I have some problem to define what represent sizeof(int). IMO sizeof(int) == memory bus address width but on platforme like PS2, you have a bus of 128 and sizeof(int) == 32. i have seen elsewherre that sizeof(int) == size of a register. Is someone have some information on this point ? thanks ------------------------------- Lagarde Sébastien Neko entertainment Junior programmer |
From: <phi...@pl...> - 2003-06-26 19:43:31
|
IIRC, the only thing you can guarantee about the various int sizes is t= hat: sizeof(long) >=3D sizeof(int) >=3D sizeof(short) >=3D sizeof(char) similarly for floats: sizeof(double) >=3D sizeof(float) Cheers, Phil = Gareth Lewin = <GL...@cl... = .uk> = To Sent by: gam...@li...urc= efo gamedevlists-gene rge.net = ral-admin@lists.s = cc ourceforge.net = Subj= ect RE: [GD-General] meaning of = 06/26/2003 11:42 sizeof(int) on all plateform = AM = = = Please respond to = gamedevlists-gene = ra...@li...urcef = orge.net = = = sizeof(int) =3D size of integer value. As defined by the compiler vendo= r. There is no "Correct" way to set the size of int. -----Original Message----- From: Lagarde S=E9bastien [mailto:Lag...@wa...] Sent: 26 June 2003 19:36 To: gam...@li... Subject: [GD-General] meaning of sizeof(int) on all plateform Hello all, 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 = |
From: Mick W. <mi...@ne...> - 2003-06-26 19:39:54
|
128 bits would give you 16 bytes, not 32. =20 On the PS2 an int is generally 32 BITS, (4 bytes), which is maybe where the confusion arose. =20 Mick -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Gareth Lewin Sent: Thursday, June 26, 2003 11:42 AM To: gam...@li... Subject: RE: [GD-General] meaning of sizeof(int) on all plateform sizeof(int) =3D size of integer value. As defined by the compiler = vendor. There is no "Correct" way to set the size of int. -----Original Message----- From: Lagarde S=E9bastien [mailto:Lag...@wa...] Sent: 26 June 2003 19:36 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). =20 IMO sizeof(int) =3D=3D memory bus address width =20 but on platforme like PS2, you have a bus of 128 and sizeof(int) =3D=3D = 32. =20 i have seen elsewherre that sizeof(int) =3D=3D size of a register. =20 Is someone have some information on this point ? thanks ------------------------------- Lagarde S=E9bastien Neko entertainment Junior programmer =20 |
From: Gareth L. <GL...@cl...> - 2003-06-26 18:42:24
|
sizeof(int) =3D size of integer value. As defined by the compiler = vendor. There is no "Correct" way to set the size of int. -----Original Message----- From: Lagarde S=E9bastien [mailto:Lag...@wa...] Sent: 26 June 2003 19:36 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). =20 IMO sizeof(int) =3D=3D memory bus address width =20 but on platforme like PS2, you have a bus of 128 and sizeof(int) =3D=3D = 32. =20 i have seen elsewherre that sizeof(int) =3D=3D size of a register. =20 Is someone have some information on this point ? thanks ------------------------------- Lagarde S=E9bastien Neko entertainment Junior programmer =20 |
From: <Lag...@wa...> - 2003-06-26 18:38:13
|
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 |
From: Javier A. <ja...@py...> - 2003-06-24 07:02:47
|
Vincent DUVERNET wrote: > So the real problem is : A process can unload a DLL for all process ? No. Anyway, the problem has nothing to do with games development, so this is the end of the thread. Javier Arevalo Pyro Studios |
From: Vincent D. <sco...@ho...> - 2003-06-23 22:24:54
|
I'm not very familiar with DLL, so I may have a problem which isn't one :) "regwizc.dll" seams to run like a spy on local computer, getting private informations & resend it without agreement. the DEPENDS.EXE tools included in Visual Studio 6, found 4 functions & some dependencies to Winsock32.dll, wininet.dll. Is this DLL (ie : "regwizc.dll") est a spy, there is 2 solutions : changing/destroying file to be sure no process to load it OR doing an application which automaticaly unload it for all process. So the real problem is : A process can unload a DLL for all process ? ----- Original Message ----- From: "Javier Arevalo" <ja...@py...> To: <gam...@li...> Sent: Monday, June 23, 2003 6:46 PM Subject: Re: [GD-General] Spy on windows 2k &Xp > Vincent DUVERNET wrote: > > But how determine is DLL already unloaded ? > > I'm not sure if you really need to know that previously, because I don't > understand the nature of the task you're trying to achieve. Any process can > load a DLL regardless whether it's already loaded. These two pieces from > MSDN might shed more light into your problem. > > "Each process maintains a reference count for each loaded library module. > This reference count is incremented each time LoadLibrary is called and is > decremented each time FreeLibrary is called." > ------- > "The GetModuleHandle function returns a handle to a mapped module without > incrementing its reference count. Therefore, use care when passing the > handle to the FreeLibrary function, because doing so can cause a DLL module > to be unmapped prematurely." > > Javier Arevalo > Pyro Studios > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Gamedevlists-general mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=557 > |