Re: Guidelines for instruction set design?

glen herrmannsfeldt <gah@ugcs.caltech.edu>
Tue, 5 May 2009 18:00:57 +0000 (UTC)

          From comp.compilers

Related articles
Guidelines for instruction set design? cyril.cressent@gmail.com (2009-04-30)
Re: Guidelines for instruction set design? rose@acm.org (Ken Rose) (2009-05-01)
Re: Guidelines for instruction set design? kamalpr@gmail.com (2009-05-03)
Re: Guidelines for instruction set design? gneuner2@comcast.net (George Neuner) (2009-05-03)
Re: Guidelines for instruction set design? hsheboul@gmail.com (Hasan Alsheboul) (2009-05-04)
Re: Guidelines for instruction set design? cyril.cressent@gmail.com (2009-05-04)
Re: Guidelines for instruction set design? torbenm@pc-003.diku.dk (2009-05-04)
Re: Guidelines for instruction set design? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2009-05-05)
Re: Guidelines for instruction set design? bartc@freeuk.com (BartC) (2009-05-05)
Re: Guidelines for instruction set design? gneuner2@comcast.net (George Neuner) (2009-05-05)
Re: Guidelines for instruction set design? walter@bytecraft.com (Walter Banks) (2009-05-06)
Re: Guidelines for instruction set design? gmt@cs.arizona.edu (2009-05-06)
Re: Guidelines for instruction set design? dot@dotat.at (Tony Finch) (2009-05-07)
Re: Guidelines for instruction set design? gneuner2@comcast.net (George Neuner) (2009-05-10)
[8 later articles]
| List of all articles for this month |

From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: Tue, 5 May 2009 18:00:57 +0000 (UTC)
Organization: California Institute of Technology, Pasadena
References: 09-05-020
Keywords: architecture, design
Posted-Date: 05 May 2009 14:21:21 EDT

cyril.cressent@gmail.com wrote:


> The initial question was about wether there were instructions, design
> rules or anything else that needed to be used in an instruction set if
> you wanted to easily use a high level language on your CPU (ie: easily
> port a compiler).


Well, one problem is that many compilers were designed based
on machines available at the time, and machines are designed
based (somewhat) on the needs of compilers.


Some older machines were designed more around the needs of
assembly programmers, but that is less true now.


There is a description, I believe in the LCC book, about the
problems generating code for the x87 floating point stack.
One solution is to consider it as eight registers in a
register based machine, mostly because compilers have been
optimized for register machines.


To me, the LCC book has a pretty good description of the
problems with generating code for different machines, the
gcc documentation not so good.


-- glen



Post a followup to this message

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