6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Sep 19, 2024 11:51 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Apr 23, 2020 1:02 pm 
Offline

Joined: Thu Apr 23, 2020 12:57 pm
Posts: 11
Hi,
I wrote an article about optimizing C code for 6502, aiming CC65 compiler. I think it may be useful also for other programming environments, therefore sharing it here too. Enjoy the reading! All comments are welcome.
https://github.com/ilmenit/CC65-Advanced-Optimizations


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 23, 2020 2:19 pm 
Offline

Joined: Mon May 21, 2018 8:09 pm
Posts: 1462
Hmm, interesting. Since cc65 is hosted on a modern computer, there shouldn't be any resource constraints preventing it from doing better at optimisation by itself. I assume the developers just haven't got around to implementing some of the more useful steps.

The points about tailoring the code to the 6502's characteristics are definitely valid, though.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 23, 2020 5:30 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
Welcome, ilmenit! Nice capturing of knowledge there - thanks for sharing.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 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: