Re: Processor specific optimisations

rickh@capaccess.org (Rick Hohensee)
18 Jan 2002 21:09:20 -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)
[7 later articles]
| List of all articles for this month |

From: rickh@capaccess.org (Rick Hohensee)
Newsgroups: comp.compilers
Date: 18 Jan 2002 21:09:20 -0500
Organization: http://groups.google.com/
References: 02-01-077
Keywords: optimize
Posted-Date: 18 Jan 2002 21:09:20 EST

It doesn't look hopeless. As a counter-example, getting good code out
of C for a Forth-like stack machine is a steep uphill battle.


C favors a PDP-11-like design. ++ and -- are post-indexed addressing,
which the PDPs had, apparently. The 386 for another counter-example
does that sort of thing very differently.


The 6502 _IS_ a PDP-11-like design. The design goal of the 6502 was to
have as many of the addressing modes of the PDP-11 as possible in 8
bits. That's promising. What you probably need is an intermediate code
and a smart converter for that intermediate code to the 6502. BCPL
"cells" might be illustrative.


Rick Hohensee
rickh@capaccess.org


> 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 ?


Post a followup to this message

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