6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue May 07, 2024 12:15 pm

All times are UTC




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: Thu Dec 24, 2020 2:08 pm 
Offline
User avatar

Joined: Sat Dec 01, 2018 1:53 pm
Posts: 727
Location: Tokyo, Japan
fachat wrote:
On the other hand, when I have an optimized library routine this uses zeropage and you'd have to copy data there.

Yeah, so you're doing the kind of opmization that I'd think a really good compiler would also do: it would look at the particular bits of data being used and decide whether it's worth copying things down to (and possibly back up from) the zero page, or whether the overhead of that wouldn't be justified. Only it might change that back and forth from build to build, always using the fastest method, whereas human programmers tend not to be quite so ferocious about optimization.

Quote:
I'd keep the "fast variables" in zeropage, without needing to copy them back and forth. Maybe there is a way to "pin" these "registers" so backing storage in 16bit is not needed?

Again, I'd think the optimizer would do exactly that.

_________________
Curt J. Sampson - github.com/0cjs


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: