English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 29 March 2021, 17:37   #21
zero
Registered User
 
Join Date: Jun 2016
Location: UK
Posts: 428
I didn't have much time to work on this lately but I have build the "speedcode":

bset d0,3920(a0)
bset d0,6970(a0)
rts

I build the code on the Amiga, not pre-calc, so I can later add some scaled versions. It all looks good and I have a table of addresses for each draw subroutine call.

Problem is how to call it from C? There is -mregparm, although I wonder if the compiler will do a decent job of keeping the variables in the right registers to avoid moving them with each call. Otherwise the overhead of stacking and unstacking the parameters will be too high.

The other option is re-write the whole loop in assembler. My original version was assembler but I was hoping to use C as much as possible.
zero 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
Optimizing my 68060 machine litwarski support.Hardware 52 11 November 2021 17:40
Optimizing linear interpolation routine for a live resampler 8bitbubsy Coders. Asm / Hardware 68 28 October 2020 13:36
Optimizing polygonfill bitcopy TCH Coders. General 106 01 December 2019 18:24
2 Button Joystick on A600 - The plot thickens Shatterhand Nostalgia & memories 61 18 March 2016 20:18
NetSurf AGA optimizing arti Coders. Asm / Hardware 199 10 November 2013 14:36

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 09:35.

Top

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