[fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jul 26 10:51:37 CEST 2007


On 26 Jul 2007, at 10:44, Skybuck Flying wrote:

> 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 guess the Intel assembler syntax is simply not supported for  
x86-64. You will have to use AT&T syntax instead. Here are some  
google links to tutorials and overview documents:
http://www.google.com/search?rls=en&q=at%26t+assembler+syntax


Jonas



More information about the fpc-pascal mailing list