if you write the emulation yourself you don't need to use the GCC-libs.
Sure, but why reinvent the wheel if GCC has already 100 REAL16 functions? Many people have a GCC installation anyway, and it works just fine. Why should an assembler programmer
not use the wealth of libraries that are the only real advantage of C/C++?
I attach an update of the
Printing a sinus via the FPU, the CRT, the GSL, and Python source. Requires Python 3, the
Gnu Scientific Library, and GCC QuadMath.
Printing the sinus of 3.0 in various languages:
Sinus(3)= 0.1411200080598672 Python 3.4.3
Sinus(3)= 0.1411200080598672135 GSL, global var
Sinus(3)= 0.1411200080598672135 GSL, immediate
Sinus(3)= 0.1411200080598672135 CRT, global var
Sinus(3)= 0.1411200080598672135 CRT, immediate
Sinus(3)= 0.1411200080598672221 Assembler/Fpu
Sinus(3)= 0.14112000805986722210074480280811 QuadMath
Exact: 0.1411200080598672221007448028081103... Wolfram Alpha
EDIT:What qword was hinting (I assume) was that if you write the emulation yourself you don't need to use the GCC-libs.
Reading his post again, it seems he means we could write a DLL or LIB in GCC that exports the 128 bit arithmetic functions. Not a bad idea, actually:
+: no GCC installation needed
-: but the DLL or LIB would bloat the MB package beyond this forum's 512k limit ;)
EDIT(2): On Win10, Python may not run properly. If it hangs, press Ctrl C.