Re: [fpc-pascal] PACKENUM and MINENUMSIZE

2008-09-11 Thread Michael Van Canneyt
On Thu, 11 Sep 2008, Lukas Gradl wrote: > Forgot to add: No difference between i386 and x64. Thanks, I updated the programmer's guide so the default sizes are now documented. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

Re: [fpc-pascal] PACKENUM and MINENUMSIZE

2008-09-11 Thread Lukas Gradl
Forgot to add: No difference between i386 and x64. regards Lukas Lukas Gradl schrieb: As far as i can understand the fpc sources it's in compiler/scanner.pas, line 359ff: { Default enum packing for delphi/tp7 } if (m_tp7 in current_settings.modeswitches) or

Re: [fpc-pascal] PACKENUM and MINENUMSIZE

2008-09-11 Thread Lukas Gradl
As far as i can understand the fpc sources it's in compiler/scanner.pas, line 359ff: { Default enum packing for delphi/tp7 } if (m_tp7 in current_settings.modeswitches) or (m_delphi in current_settings.modeswitches) then current_settings.packenum:

Re: [fpc-pascal] PACKENUM and MINENUMSIZE

2008-09-11 Thread Michael Van Canneyt
On Thu, 11 Sep 2008, Marco van de Voort wrote: > In our previous episode, Michael Van Canneyt said: > > > As far as I could find in the docs it depends on $MODE: for $MODE OBJPAS > > > it's > > > 4 but I could'nt find the default for $MODE DELPHI. > > > > Where did you read that this depends o

Re: [fpc-pascal] PACKENUM and MINENUMSIZE

2008-09-11 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > As far as I could find in the docs it depends on $MODE: for $MODE OBJPAS > > it's > > 4 but I could'nt find the default for $MODE DELPHI. > > Where did you read that this depends on $MODE ? > It just says that the default (contrary to Delphi)

Re: [fpc-pascal] PACKENUM and MINENUMSIZE

2008-09-10 Thread Michael Van Canneyt
On Wed, 10 Sep 2008, Lukas Gradl wrote: > Hi! > > Could anyone help me determining the defaults for MINENUMSIZE / PACKENUM? > > As far as I could find in the docs it depends on $MODE: for $MODE OBJPAS it's > 4 but I could'nt find the default for $MODE DELPHI. Where did you read that this depe

[fpc-pascal] PACKENUM and MINENUMSIZE

2008-09-10 Thread Lukas Gradl
Hi! Could anyone help me determining the defaults for MINENUMSIZE / PACKENUM? As far as I could find in the docs it depends on $MODE: for $MODE OBJPAS it's 4 but I could'nt find the default for $MODE DELPHI. Is there a difference between the CPU-Flavor used (i386 contra X64)? AFAIK this seem