* Porting Binutils
@ 2009-01-07 10:08 Venkataramanan Kumar
2009-01-13 16:29 ` Dave Brolley
0 siblings, 1 reply; 2+ messages in thread
From: Venkataramanan Kumar @ 2009-01-07 10:08 UTC (permalink / raw)
To: cgen
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.
--
Venkataramanan.K
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Porting Binutils
2009-01-07 10:08 Porting Binutils Venkataramanan Kumar
@ 2009-01-13 16:29 ` Dave Brolley
0 siblings, 0 replies; 2+ messages in thread
From: Dave Brolley @ 2009-01-13 16:29 UTC (permalink / raw)
To: Venkataramanan Kumar; +Cc: cgen
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.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-13 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-07 10:08 Porting Binutils Venkataramanan Kumar
2009-01-13 16:29 ` Dave Brolley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).