English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 27 April 2024, 12:28   #181
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,292
Quote:
Originally Posted by Karlos View Post
How feasible is it to extract the the IEEE code into a library that simply provides regular functions for performing the operations on floats and doubles, without all the trap emulation? Something like the mathieee#?
*Cough* That *is* actually the design of the whole thing. You have the softieee.library, which is the mathematical core in the form of a user-callable library, and you have the SoftIEEE executable, which does the patching and trap-emulation. Thus, for example, if you use MuRedox, it does not use the trap emulation of SoftIEEE, but its own, and calls into the library.
Thomas Richter is offline  
Old 27 April 2024, 12:43   #182
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,359
Right, but what I meant as an endgame is the ability to compile code that contains float/double operations and have it directly generate binaries for integer-only systems that transparently call the softieee library.

Or does MuRedox make this approach irrelevant?
Karlos is online now  
Old 27 April 2024, 13:13   #183
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,292
That is actually a matter of compiler vendors. Most compilers will be able to emit code that calls into the system mathieee libraries, and those also operate without an FPU (and are then also faster than softieeee as they only implement double and not extended precision and do not need to update the status of the emulated FPU).
Thomas Richter is offline  
Old 27 April 2024, 13:32   #184
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,359
Sure, I get that compilers need to be updated. However, if mathieee libraries are already faster than softieee then there's probably no point to my suggestion. Knowing what you know, could softieee routines be used to build faster versions of the existing mathieee libraries if only 32 and 64 bit routines are used? I would be surprised if those old libraries are the most optimal solution for later 68K CPUs.
Karlos is online now  
Old 27 April 2024, 13:39   #185
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,292
The precision of SoftIEEE depends on the contents of the (emulated) FPU control register, and thus it has to offer extended precision. SoftIEEE will be never as fast as the Os mathieee.libraries, they are really optimized for speed, take arguments in registers, generate output in registers and don't fuzz with things like rounding, emulation of the FPU status register or compute precision. Algorithms are also different - mathieee uses polynomials for the transcendental functions, softieee uses Cordic.
Speed was never really the goal of the project. If you need speed, the best option is a hardware FPU, you cannot beat that.
Thomas Richter is offline  
Old 27 April 2024, 15:09   #186
SpeedGeek
Moderator
 
SpeedGeek's Avatar
 
Join Date: Dec 2010
Location: Wisconsin USA
Age: 60
Posts: 842
Quote:
Originally Posted by Thomas Richter View Post
The precision of SoftIEEE depends on the contents of the (emulated) FPU control register, and thus it has to offer extended precision. SoftIEEE will be never as fast as the Os mathieee.libraries, they are really optimized for speed, take arguments in registers, generate output in registers and don't fuzz with things like rounding, emulation of the FPU status register or compute precision. Algorithms are also different - mathieee uses polynomials for the transcendental functions, softieee uses Cordic.
Speed was never really the goal of the project. If you need speed, the best option is a hardware FPU, you cannot beat that.
Thanks for explaining why software emulation can not replace the performance of the hardware FPU (only the results). I only wish you had done this a few years ago (before certain members of the Terrible Fire group trolled against my 68LC060.library). Anyway, better late than never.
SpeedGeek is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Demos to test FPU on SX32 MkII (020+FPU) Rochabian request.Demos 1 21 April 2020 03:03
Betatesting Amiga and C64 Forever 7 michaelz support.Amiga Forever 23 22 June 2017 16:58
[obsolete] EoB 2 Thread AGA and translations betatesting Marcuz project.Amiga Game Factory 17 21 August 2008 22:47
Frederic's Emulator inside and Emulator thread Fred the Fop Retrogaming General Discussion 22 09 March 2006 07:31

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:02.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08691 seconds with 15 queries