This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Porting Binutils


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.


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