[fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Hello World program with ASM, compilation aborted ? Error: Unknown identifier "EAX" ???
Skybuck Flying
skybuck2000 at hotmail.com
Thu Jul 26 09:02:16 CEST 2007
Hello,
I downloaded and installed:
fpc-2.1.4.x86_64-win64.exe (beta)
I wrote a little Hello World program to test the compiler:
var
test : int64;
begin
writeln('Hello Free Pascal World !');
asm
mov eax, ecx
end;
writeln('Test: ', test );
readln;
end.
I get these errors:
Y:\Free Pascal\Tests\Hello World>ppcrossx64 HelloWorld
HelloWorld.pas(7,10) Error: Unknown identifier "EAX"
HelloWorld.pas(7,12) Error: Unknown identifier "ECX"
HelloWorld.pas(7,12) Error: Asm: [mov ???,???] invalid combination of opcode
and
operands
HelloWorld.pas(14,4) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
Surely it's possible to write assembler code in free pascal ?
Is it a bug/beta issue ?
Can I use win32 download to compile to 64 bit programs ?
I'll try another version.
Bye,
Skybuck.
More information about the fpc-pascal
mailing list