Re: Guidelines for instruction set design?

Hasan Alsheboul <hsheboul@gmail.com>
Mon, 04 May 2009 05:39:33 +0300

          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)
[11 later articles]
| List of all articles for this month |

From: Hasan Alsheboul <hsheboul@gmail.com>
Newsgroups: comp.compilers
Date: Mon, 04 May 2009 05:39:33 +0300
Organization: Compilers Central
References: 09-05-008
Keywords: architecture
Posted-Date: 05 May 2009 10:44:25 EDT

Are you trying to build an ISA that is a VM-like mapping, or is it for a
simulator for further study and research?


First of all, you're talking about *porting* an existing C compiler for
a given archicture to a different one, the custom one that you're
building. A general overview of the custom ISA (that should be handy at
first), gives a general guidelines of the build process, and perhaps for
the portability. After then, you may want to study the C features that
you want to modify/add or to extend your architecture.


For porting, I would recommend to refer to the LCC documentation textbook,
http://www.cs.princeton.edu/software/lcc/


taking into your account the ealier version 3.6, where the textbook is
more closely documenting. New additions were added to version 4.2




Chapter 5 gives code Generation Interface
Gives the general interface of how to use, and for further study, the
lcc source code for generating the final code.


Chapter 16, 17, and 18, discuss code generation for different ISAs:
MIPS, SPARC, and X86 archictures.


Other chapters in the text are certainly useful.


--
Hasan



Post a followup to this message

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