Re: Processor specific optimisations

usenet@gehre.org (Bruce Gehre)
18 Jan 2002 21:10:37 -0500

          From comp.compilers

Related articles
Processor specific optimisations mpointie@eden-studios.fr (MickaŽl Pointier) (2002-01-17)
Re: Processor specific optimisations pfroehli@ics.uci.edu (Peter H. Froehlich) (2002-01-18)
Re: Processor specific optimisations dave@cyclicode.net (Dave Hudson) (2002-01-18)
Re: Processor specific optimisations rickh@capaccess.org (2002-01-18)
Re: Processor specific optimisations usenet@gehre.org (2002-01-18)
Re: Processor specific optimisations walter@bytecraft.com (Walter Banks) (2002-01-24)
Re: Processor specific optimisations jgd@cix.co.uk (2002-01-24)
Re: Processor specific optimisations thp@cs.ucr.edu (2002-01-24)
Re: Processor specific optimisations RLWatkins@CompuServe.Com (R. L. Watkins) (2002-01-24)
Re: Processor specific optimisations mpointie@eden-studios.fr (MickaŽl Pointier) (2002-01-28)
Re: Processor specific optimisations rickh@capaccess.org (2002-01-28)
[6 later articles]
| List of all articles for this month |

From: usenet@gehre.org (Bruce Gehre)
Newsgroups: comp.compilers
Date: 18 Jan 2002 21:10:37 -0500
Organization: http://groups.google.com/
References: 02-01-077
Keywords: optimize
Posted-Date: 18 Jan 2002 21:10:37 EST

"Micka? Pointier" <mpointie@eden-studios.fr> wrote
> I would like to know if it's possible for a C compiler to
> generate a decent assembly code for each and
> every kind of processors. ...


> So, the question finaly is: Is it possible to apply the modern
> compiler optimisation strategies to this old processor and have a
> result that an experimented 6502 assembly coder would have a hard time
> to beat ?


To your last question: No.
I know many professional users, who use only pure 65xx Assembly to
write programs for that hardware-platform (mostly de-/compression
progs). And they use it, because there exists no really "good"
optimizing C/C++ compiler for that hardware-chip.


And last, the best way to optimize the code for speed and/or size is
to write parts of the program or the whole program in the
processor-native assembly language. The optimizers in C and C++
Compilers are just "bugfixes" for the need of speed.


Bruce Gehre


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.