This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: writing custom machine descriptions
- From: dewar at gnat dot com
- To: danishsamad at yahoo dot com, gcc at gcc dot gnu dot org
- Cc: durdana at enabtech dot com
- Date: Wed, 26 Dec 2001 07:36:10 -0500 (EST)
- Subject: Re: writing custom machine descriptions
<<We have designed our own processor. In order to
generate assembly instructions for the desired
architecture will I have to add machine description
files (as has been done in gcc's config directory)?
Or will I also have to modify the gcc backend as well?
>>
If the architecture is conventional enough (enough is hard to define
precisely), then only a new machine description file is required. In
the past, new architectures have sometimes required new feaures in
the gcc backend, especially to make sure that optimal code is generated,
but that is less true as time goes on, and unless your architecture is
weird, it is likely you can get a quite decent compiler by simply providing
a new machine description file.