[fpc-devel]some m68k releated stuff

Marco van de Voort marcov at stack.nl
Fri Mar 28 10:24:00 CET 2003


> >Here are a few things about the m68k version i'd like to discuss. 
> >
> >First, how well the FPU codegenerator is tested in the m68k version?
> >I ask, because i've got a pretty big piece of code here, which makes
> >heavy use of float math. (A 3D engine namely.) I wrote it using the 
> >i386 compiler, a few years ago. So now i tried to port it to m68k.
> >After working around a few internalerror(10)'s :) i successfully compiled
> >the code, and it worked. But then i tried to switch off the FPU emulation
> >to generate direct FPU code, since that should be really faster on my
> >'060 baby. But i didn't got anything but nasty crashes, and some invalid
> >instruction exceptions... So, are there any known defects of the FPU code
> >generator, or should i try to give a small example program which shows 
> >the error?
> 
> What version do you use?
> the Amiga napshot that Carl created?
> Did you try the linux or the netbsd port?
> The main difference, is that these two ports have
> do not use FPU emulation by default.

I can vaguely remember something about the 040 not having a few FPU
instructions the 030 has, maybe that also goes for 060's.

The NetBSD kernel emulates these afaik. (for 040)




More information about the fpc-devel mailing list