Porting Binutils
Dave Brolley
brolley@redhat.com
Tue Jan 13 16:29:00 GMT 2009
Hi,
Generally one starts by cloning an existing port which is similar to the
new one. I usually do this by copying all of the files and directories
named after the port to be cloned and by grepping the remaining
source/Makefiles/scripts for references to the old port and copying them
to add the new port. This leaves you with a new port which behaves like
the old one. I then start ripping out the details of the old port and
replacing them with implementation of the new one.
There is some documentation in cgen/doc which may also be helpful for
learning the scheme-like cgen .cpu language and how to generate source
from the .cpu and .opc files for your port.
I hope this helps,
Dave
Venkataramanan Kumar wrote:
> Hi,
>
> I am working on porting GCC and binutils to a target similar to MIPS.
> I have completed basic compiler port.
> Now I need to port binutils. Can you please give a brief introduction
> on how to start using CGEN.
>
> Thank is advance.
>
More information about the Cgen
mailing list