Re: [fpc-pascal] Efficiency of generated code [x86_64]

2011-06-25 Thread Jonas Maebe
On 24 Jun 2011, at 19:16, Peter wrote: > # [7] For X := 0 to 1000 do >movl$0,%eax >decl%eax >.balign 4,0x90 > .Lj7: >incl%eax > # [9] A := A + X; >cvtsi2sdl%eax,%xmm2 >addsd%xmm0,%xmm2 >movsd%xmm2,%xmm0 > # [10] A := A * B; >movsd%x

Re: [fpc-pascal] resourcestring and const arrays

2011-06-25 Thread Marco van de Voort
In our previous episode, Craig Peterson said: > On 6/24/2011 4:14 PM, Marco van de Voort wrote: > > No, this is a problem of gettext. > > It's a problem with FPC's resourcestring implementation, rather than > something specific to gettext. Well, then explain why Delphi + XE has exactly the same p

Re: [fpc-pascal] resourcestring and const arrays

2011-06-25 Thread Craig Peterson
On 6/25/2011 7:55 AM, Marco van de Voort wrote: Well, then explain why Delphi + XE has exactly the same problem. Delphi + gettext does, yes, but Delphi + resourcestring + resource dll does not. Resourcestring is a language feature; gettext is a third-party library. I'd expect them to have