[fpc-pascal] fpc-2.1.4.x86_64-win64.exe: -Mdelphi not working ?
Skybuck Flying
skybuck2000 at hotmail.com
Thu Jul 26 11:01:22 CEST 2007
----- Original Message -----
From: "Michael Van Canneyt" <michael at freepascal.org>
To: "FPC-Pascal users discussions" <fpc-pascal at 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.
More information about the fpc-pascal
mailing list