public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* Porting Opcodes using CGEN
@ 2003-02-17 14:59 Shehryar Humayun
  0 siblings, 0 replies; only message in thread
From: Shehryar Humayun @ 2003-02-17 14:59 UTC (permalink / raw)
  To: cgen

Hi all,

I get alot of messages from people new to CGEN about
porting opcodes using CGEN. In the beginning, like the
rest, I tried to figure it out using the avaialble
documentation, but it did not help much either. 

At the start, there is nothing easier than a
step-by-step guide for doing things. So I thought I
should post the procedure I used for generating the
desired output files. I hope this will help the new
comers in speeding up the process of getting opcodes
files up and running. 

This is how it goes:

1. Make a temporary directory and cd to it (call it
"build" for the moment)
2. Configure "build" with the top level configure
script of binutils with --target=TARGET. (Use
binutils-2.13 or higher if you want to save yourself
from some later writing).
3. The generated Makefile in <build>/opcodes should
not contain  "CGENDEPS = ../cgen/stamp-cgen \" on its
first line (does not happen in the case of
binutils-2.13). If it does, remove it and let it be:
"CGENDEPS= \" on the first line. The rest of it
remains the same.
4. Check for the value of CGENDIR variable. It has to
be the correct path to your CGEN source directory. If
not, either change the path manually, or copy CGEN
source directory (containing .scm files) to the
binutils source tree i.e. binutils/cgen. Only then
would it work out.
5. run "make stamp-TARGET" from your <build>/opcodes
directory.
6. If every thing goes well, the new generated files
are put back in the binutils/opcodes directory.

Happy making...
Regards

Shehryar


__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-17 14:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-17 14:59 Porting Opcodes using CGEN Shehryar Humayun

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).