First Spear Posted February 13, 2022 Share Posted February 13, 2022 Hey all. Is there a way within an IntyBASIC program to toggle the JLP multiplication/division optimization, so the speed difference can be compared? I am thinking of an ASM directive or two? Thanks. Quote Link to comment Share on other sites More sharing options...
+nanochess Posted February 13, 2022 Share Posted February 13, 2022 To use the JLP multiplication/division just turn on the --jlp compilation switch. IntyBASIC will use it in most cases, except constant multiplications that are shorter than loading the JLP registers. Anyway, JLP does the multiplication >immediately< a typical 100x speedup. 2 Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted February 15, 2022 Share Posted February 15, 2022 On 2/13/2022 at 4:25 PM, nanochess said: To use the JLP multiplication/division just turn on the --jlp compilation switch. IntyBASIC will use it in most cases, except constant multiplications that are shorter than loading the JLP registers. Anyway, JLP does the multiplication >immediately< a typical 100x speedup. I think he wants to do an A/B comparison, wherein the same program he can do native and external multiplications to compare their performance. It seems that is not possible from within IntyBASIC, unless you work around the compiler using ASM directly. Or is there another way? Quote Link to comment Share on other sites More sharing options...
+nanochess Posted February 16, 2022 Share Posted February 16, 2022 9 hours ago, DZ-Jay said: I think he wants to do an A/B comparison, wherein the same program he can do native and external multiplications to compare their performance. It seems that is not possible from within IntyBASIC, unless you work around the compiler using ASM directly. Or is there another way? It cannot happen in the same program. Two separare programs should be compiled. Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted February 16, 2022 Share Posted February 16, 2022 9 hours ago, nanochess said: It cannot happen in the same program. Two separare programs should be compiled. Makes sense. It also seems simple enough: to create a "benchmark" program that performs arithmetic operations, then compile it twice -- with and without the option for accelerator functions -- and run them to get performance metrics. -dZ. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.