----- Original Message -----
From: "Michael Van Canneyt" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions" <fpc-pascal@lists.freepascal.org>
Sent: Thursday, July 26, 2007 11:50 AM
Subject: Re: [fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?
On Thu, 26 Jul 2007, Skybuck Flying wrote:
Ok,
I just reinstalled fpc-2.1.4.x86_64-win64.exe:
And this time I used the -Mdelphi compiler switch but it still gives
problems:
Y:\Free Pascal\Tests\Hello World>ppcrossx64 HelloWorld.pas -Mdelphi
HelloWorld.pas(9,10) Error: Unknown identifier "EAX"
HelloWorld.pas(9,12) Error: Unknown identifier "ECX"
HelloWorld.pas(9,12) Error: Asm: [mov ???,???] invalid combination of
opcode
and
operands
HelloWorld.pas(16,4) Fatal: There were 3 errors compiling module,
stopping
Fatal: Compilation aborted
I also tried adding:
{$mode delphi}
Nothing is working :((((((((( (Just like the transformers soundtrack
song
;) :) )
Obviously it does not work: the assembler you use is for 32-bit platforms,
and that will not work if you cross-compile to 64-bit !
Using 32 bit registers in 64 bit mode should be perfectly valid.
It's just like using 16 bit registers or 8 bit registers in 32 bit mode,
that's perfectly valid too.
So simply put: you are wrong about that, I am 99.99% sure about that ;)
The mode statement only applies to pascal syntax, never to assembler.
Again, you wrong, me thinks.
It does work for asm too.
Get your facts straight ;) :)
Bye,
Skybuck.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal