According to the CW documentation, selecting 68881 for floating point should generate fpu instructions on a 68040.
There are two codepaths you can follow to compile for fpu, either by using Metrowerks' math.h or by using Apple's fp.h (a comment in math.h says that using fp.h is not recommended as it is mac 68k target exclusive). In either case, using one of these headers and enabling 68881 should generate fpu instructions for relevent math functions.
No matter what I try, I am getting bus errors as soon as any fp math function is encountered, and I can't figure out why.
Can anyone point me in the right direction?
There are two codepaths you can follow to compile for fpu, either by using Metrowerks' math.h or by using Apple's fp.h (a comment in math.h says that using fp.h is not recommended as it is mac 68k target exclusive). In either case, using one of these headers and enabling 68881 should generate fpu instructions for relevent math functions.
No matter what I try, I am getting bus errors as soon as any fp math function is encountered, and I can't figure out why.
Can anyone point me in the right direction?
