View Single Post
Old 09 December 2013, 16:54   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,543
Quote:
Originally Posted by mark_k View Post
[*]Use __fastcall for functions. With that, the first two arguments are passed in registers instead of on the stack which could improve performance.
I tried this some years ago but there was all kinds of annoying issues. Perhaps it is easier today... I'll try.

Quote:
[*]Use profile-guided optimisation (PGO). Having some way to script WinUAE so it automatically boots different demos/HDFs using different CPU cores would really help there.
Good luck finding ^10 test cases that call all normally used functions without requiring hours to finish

Quote:
[*]Add zlib, 7z and other libraries to the WinUAE project so the various libraries can be built with whole-program optimisation too. (I just used Toni's winuaeinclibs.zip archive here.)
Pointless optimization, these functions are not called hundreds of times/second.

Quote:
I'm not sure how that difference could affect emulation, so why not test it out?
It makes FPU emulation inaccurate.

Last edited by Toni Wilen; 09 December 2013 at 17:09.
Toni Wilen is offline  
 
Page generated in 0.05827 seconds with 9 queries