Re[4]: [cc65] snapshot #1

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-09-26 16:40:09


Hello MagerValp,

UvB>> When searching for more sample programs, I found the plasma.c
UvB>> code in your package. It was rather slow with the official
UvB>> compiler release (2 frames per second), and contained too much
UvB>> C64 specific code for my taste. So I did some code cleanup (which
UvB>> improved the speed by almost 50%) and added a few macros to make
UvB>> it compile for both, the C64 and CBM510.

gpz>> would you sent that main.c to me in private mail? i'd love to
gpz>> checkout what you actually changed in the code to make it faster
gpz>> :=)

M> So would I -- just post the changes here. I know how to optimize asm,
M> but I'm fairly clueless when it comes to C.

well the thing is... when it comes to optimizing C there are just few
general rules of thumb to consider - all the rest usually is pretty
compiler and cpu specific. (as in, if you find hints on how to
optimize programs written for x86/linux those tips might be total bull
when applied to cc65 ;=)) this makes it important (IMHO) for the
compiler authors to show how such optimizations can be done.... all
other methods are kind of alchemy ,=) (probably it wouldnt be bad to
have both, also the non-optimised version, as a sample so ppl can see
the difference)


-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:42 CET