[fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?
Michael Van Canneyt
michael at freepascal.org
Thu Jul 26 11:50:14 CEST 2007
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 !
The mode statement only applies to pascal syntax, never to assembler.
Michael.
More information about the fpc-pascal
mailing list