This is the mail archive of the cgen@sources.redhat.com 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: Next Step


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


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