This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Porting gcc
- From: Ben Elliston <bje at wasabisystems dot com>
- To: gcc at gcc dot gnu dot org
- Date: 14 Aug 2003 01:43:59 +1000
- Subject: Re: Porting gcc
- References: <006f01c36176$2f6fd800$7303230a@PTR>
"Petar Penchev" <ptr@sd-bul.bg> writes:
> Target.c target.h and target.md files are complementary to one
> another. I mean they have common purpose (to define target
> machine). I am wondering are there any tools which could help me to
> create /or better to generate / these files or I have to write them
> from scratch ?
There are no automatic generators, although there was some discussion
once about using CGEN to assist in the generation of the machine
description file. The usual approach is to take the most similar
existing port, copy those files and start with those.
> And second question in Amazon.com I found some books on porting GCC,
> does anybody know something about on-line version of these books ?
If the one you are looking at is the one published by the FSF, then
the book's contents are available in the GCC source tree. Also, see:
http://gcc.gnu.org/onlinedocs/
Ben