[fpc-devel] M68k: important milestone reached

Sven Barth pascaldragon at googlemail.com
Sun Feb 23 13:44:56 CET 2014


On 22.02.2014 16:48, Sven Barth wrote:
> - I need to use -sh (thus generating the ppas.sh script), because QEMU
> does not seem to allow me to exec a non m68k program

And with revision 26851 "-sh" isn't needed anymore as the compiler can 
now correctly find the "as" and "ld" binaries. :D (the problem was that 
the location of the environment variables was calculated incorrectly 
which resulted in envp being Nil => no PATH variable)

=== output begin ===

$ ../run-qemu-m68k ./compiler/ppc68k -n -Furtl/units/m68k-linux 
-FEtestoutput -viwn -XPm68k-elf- -O- -Cpisac ./fpctests/helloworld.pas
Target OS: Linux for m68k
Compiling ./fpctests/helloworld.pas
Assembling helloworld
Linking testoutput/helloworld
/usr/bin/m68k-elf-ld: warning: testoutput/link.res contains output 
sections; did you forget -T?
5 lines compiled, 0.8 sec
$ ../run-qemu-m68k ./testoutput/helloworld
Hello World

=== output end ===

Regards,
Sven



More information about the fpc-devel mailing list