This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: retargeting gcc...



> From: "wayne c. deprince jr." <wcd2@lehigh.edu>
> Date: Sat Nov 21 04:33:49 CET 1998

>   i am planning on creating a new target architecture for gcc, which is
> an architecture im developing.  i really dont know that much about gcc,
> and would appreciate any help on what this takes.. i have been browsing
> the source and i figured out that at least a machine definition file
> must be written in RTL, along with a bunch of support files.. if
> somebody could at summarize the steps, share experiences, or at least
> point me in the write direction, i would really appreciate it.  also,
> there is a book called using and porting gnu CC.. is it worth it, or is
> it no good...

Well, it's worth its money...  It's the definitive
documentation for GCC.  It's free (in at least two senses) and
comes with the compiler.  If you use emacs or the info-program,
and gcc is installed on your system, you can reach its
electronic form via via "M-x info".  Or you can use LaTex to
make PostScript from it and print it out yourself, or use a
popular info2www-resource, like the (for gcc-2.7.2.2, outdated
on some details and some later added functionality but still at
least gives you the gist).
<URL:http://www.conservatory.com/info/gcc.info.Top.html>
(no, there's no online "live" copy of what's in egcs yet.
 I must admit I'm tempted...) 

You may also find my master's thesis on a port of GCC (Porting
GCC to the CRIS architecture) informative.  It's available at
<URL:ftp://ftp.axis.se/pub/users/hp/rapport.ps> (and .pdf and
ps.gz and pdf.gz).

Anyway, the "source code" of my thesis will (on suggestion from
RMS) be turned into a GPL:ed book with the tentative title
"Porting GCC for dummies".  Your opinions, suggestions and other
comments are appreciated.  Since it will now be free
documentation (as in the sense that it is modifiable, which my
thesis is not), maybe it will look more interesting.
 Planned change: making it more general (not CRIS-centric)
Suggested change: making it more didactic.

brgds, H-P
-- 
Hans-Peter Nilsson, Axis Communications AB, S - 223 70 LUND, SWEDEN
Hans-Peter.Nilsson@axis.se | Tel +46 462701867,2701800
Fax +46 46136130 | RFC 1855 compliance implemented; report loss of brain.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]