[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with Aztec C



Burger <Burger@206.55.132.145> wrote:

> Is it possible that there is a compiler switch to enable floating
> point.  On compilers before 1988, it was an option to allow floating
> point data types on machines without native floating point hardware
> (Just about all of them in 1988)

I thought of that, but there is no such option mentioned in the manual.
I did a quick test and got the same result as Doug - any attempt to use
"float" or "double" results in an error 17.  (I'd never tried using
floating point in Aztec C before.)

Floating point works fine if you use cci, the compiler which generates
interpreted code.  This probably only applies to cc, the native (6502) C
compiler.  It appears that they simply didn't support floating point in
the native compiler, which is rather surprising.  It is even more
surprising that it isn't mentioned in the manual.

This isn't really a problem - it is just inconvenient (you can mix
interpreted and native code in one program, but have to use different
source files and compile them separately.)

-- 
David Empson
dempson@actrix.gen.nz
Snail Mail: P.O. Box 27-103, Wellington, New Zealand