This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: Next Step
- From: Shehryar Humayun <shehryarhumayunkhan at yahoo dot com>
- To: Ben Elliston <bje at redhat dot com>
- Cc: cgen at sources dot redhat dot com
- Date: Tue, 3 Sep 2002 20:51:32 -0700 (PDT)
- Subject: Re: Next Step
Hi,
Thanks for the response. It worked out quite well. I
have been able to generate 8 opcodes support files for
m32r as well as fr30. Just one thing, When I invoke
the make process, in the end it prints:
Generating m32r-opc.h
Generating m32r-opc.c
...
When the make process terminates, the files generated
are named tmp-opc.c, tmp-opc.h, tmp-*.*, rather than
m32r-*.c. Is this okay? Moreover, the files do not
contain the name of the architecture e.g. m32r, rather
<arch> is written every where in the file. Is this thw
way it is supposed to be?
Regards
--- Ben Elliston <bje@redhat.com> wrote:
> Hi.
>
> >>>>> "Shehryar" == Shehryar Humayun
> <shehryarhumayunkhan@yahoo.com> writes:
>
> Shehryar> At the end of step 3, I get a message
> "Done analysis"
> Shehryar> and I get the prompt "guile>".
> Shehryar> Porting guide for CGEN says that next
> step is to
> Shehryar> "run generators until output looks
> reasonable, e.g.
> Shehryar> (cgen-opc.c)"
>
> Shehryar> - What is meant by "generator". Is it
> .scm files in
> Shehryar> cgen source directory we are talking
> about?
>
> Yes.
>
> Shehryar> - How exactly do I implement this phrase
> "until output
> Shehryar> looks reasonable" in the statement? What
> should I
> Shehryar> write at guile prompt? What is the
> criteria for
> Shehryar> reasonable output?
>
> You should not bother running cgen in this tedious
> way. If you are
> doing an opcodes port, use the infrastructure in
> place in the
> src/opcodes/Makefile.{am,in} to run CGEN for you. I
> think this point
> has been discussed before.
>
> Shehryar> - Where are the output files located
> e.g.
> Shehryar> cgen-opc.[ch], cgen-desc.[ch]?
>
> I believe there is an application-switch to specify
> where the
> generated files should go. Again, this is handled
> for you by the
> opcodes Makefile.
>
> Shehryar> Hoping for an early response, beed it
> badly!
>
> Sorry it took so long -- it was a three-day weekend.
>
> Ben
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com