2 ms·
I'm not sure if this code even uses the x87 opcodes or software emulation for the floats! First of all, the source defines a "FloatType", which is set to "Real
by _0ffh 11y ago
I'm not sure if this code even uses the x87 opcodes or software emulation for the floats!
First of all, the source defines a "FloatType", which is set to "Real". But the real type is a 6-byte float type optimised for software floating point routines! I'd like to see the results when using the "Single" and "Double" types.
Also, it's easy to forget that x87 code generation in TP3 is an option that defaults to "don't".
- Zardoz84 11y agoI rememeber that TurboBASIC (Borland's clone of QBasic), could use x87 math. And it was using a TurboC like IDE
- _0ffh 11y agoI'm not arguing TP3 couldn't produce x87 opcodes - I'm wondering if the author remembered to properly tell it to do so!
- rzzzt 11y agoThere's a bullet point in the TP3 section where the author's saying: I used TURBO-87.COM to compile the code with floating point support (no doubles, just single precision) to SMALLPT.COM (There's also a subroutine in the .com file which starts with an fninit instruction. :)