From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2065 invoked by alias); 2 Jan 2003 01:43:29 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 2058 invoked from network); 2 Jan 2003 01:43:28 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by 209.249.29.67 with SMTP; 2 Jan 2003 01:43:28 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18TuNK-0005hj-00 for ; Thu, 02 Jan 2003 02:42:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: cgen@sources.redhat.com Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18TuNK-0005ha-00 for ; Thu, 02 Jan 2003 02:42:22 +0100 Path: not-for-mail From: Ben Elliston Subject: Re: opcodes port Date: Thu, 02 Jan 2003 01:43:00 -0000 Organization: Red Hat Asia-Pacific Pty Ltd Message-ID: References: <200212311611.15926.dfcarney@net-itech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) Cache-Post-Path: webdevap.brisbane.redhat.com!unknown@scooby.brisbane.redhat.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) X-SW-Source: 2003-q1/txt/msg00000.txt.bz2 Hi David, >>>>> "David" == David Carney writes: David> I'm following the instructions in section 5.5 of the cgen David> manual regarding an opcodes port and have a couple questions: David> i) step 7. says to repeat steps 4, 5, and 6 until the output David> looks reasonable. What is the definition of "reasonable" David> output? This comment made more sense in the early days of CGEN development. I would not pay too much attention to it now. If you are happy with your .cpu input file, then you should deem that the output "looks reasonable". ;-) David> ii) how do I get Guile to actually output and write the David> generated files to disk? I.e. when I run (cgen-desc.h) I get David> a nice header file listing, but it's not saved anywhere. David> Should I just cut-and-paste, or is there some Guile/scheme David> command to redirect output? I'm assuming that the makefiles David> in binutils are responsible for running cgen and generating David> the appropriate files, but I'm unclear as to how to configure David> them to point to the directory in which I have cgen installed David> and, furthermore, how to actually have the makefile David> autogenerate the files for my new architecture... Just mimic one of the existing ports in opcodes/Makefile.am. Take fr30 as an example; search through Makefile.am for all occurrences of `fr30' and follow in a near-identical fashion. One that is done, run `automake' in the opcodes source tree. Then configure an opcodes build directory: $ mkdir build && cd build $ /path/to/src/opcodes/configure $ make stamp-foo (where `foo' is your target architecture). David> iv) and because my understanding of binutils is rather David> vague... what will running make dep in /opcodes actually David> produce for me? what do I need to do with the resultant David> files? make dep will update the dependencies in Makefile.am, I believe. David> Overall, I'm getting a handle on how to write a .cpu file, David> but I'm still virtually clueless when it comes to using it in David> conjunction with binutils to produce an assembler... Understandable! :) Hope this helps, Ben