[fpc-devel] M68k: important milestone reached

Sven Barth pascaldragon at googlemail.com
Mon Feb 24 11:54:30 CET 2014

Am 24.02.2014 10:16, schrieb Michael Schnell:
> GREAT !!!!
> I do have an real ( :-) ) 68 K (in fact "Fido" based) Board sitting on 
> my desk which I work with every day.
> I do development with same using GNU C via Eclipse and a JTAG adapter.
> The embedded system does not run Linux but both a very propriety 
> non-preemptive (pure system mode) OS by Innovasic and a very propriety 
> preemptive (user mode) OS by myself.
> Any chance to do some tests with your milestone on this system ?
We don't have an embedded target yet and for the two OS you mentioned 
the RTL would need to be ported (or at least mostly stubbed). As you use 
GNU C then the calling convention used should hopefully be the same as 
for Linux though you might want to check whether it's using A6 or A5 as 
stack frame register.

If you want to play with it nevertheless, the necessary parameters 
should be -O- -Cp68000 (or maybe also 68020) and you'll need the 
binutils for that target. You could for example compile a simple unit 
that just contains functions/procedures (without managed types, no RTL 
usage!) for m68k-linux (with the above mentioned parameters) and then 
link the resulting .o file from a C program for the fido that calls the 
functions (keep name mangling in mind or use "[public, alias: 
'SomeName']" on the Pascal procedures/functions).

I know that sounds rather complex and restricted at the same time, but 
for now that would be the only possibility if there is no port yet.


More information about the fpc-devel mailing list