From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19337 invoked by alias); 31 Dec 2002 21:11:34 -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 19302 invoked from network); 31 Dec 2002 21:11:32 -0000 Received: from unknown (HELO mars.net-itech.com) (24.100.100.83) by 209.249.29.67 with SMTP; 31 Dec 2002 21:11:32 -0000 Received: (qmail 6290 invoked from network); 31 Dec 2002 21:11:20 -0000 Received: from unknown (HELO satori) (192.168.12.27) by mars.net-itech.com with SMTP; 31 Dec 2002 21:11:19 -0000 Content-Type: text/plain; charset="us-ascii" From: David Carney Organization: Net Integration Technologies To: cgen@sources.redhat.com Subject: opcodes port Date: Tue, 31 Dec 2002 13:11:00 -0000 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200212311611.15926.dfcarney@net-itech.com> X-SW-Source: 2002-q4/txt/msg00130.txt.bz2 I'm following the instructions in section 5.5 of the cgen manual regarding = an=20 opcodes port and have a couple questions: i) step 7. says to repeat steps 4, 5, and 6 until the output looks reasonab= le.=20=20 What is the definition of "reasonable" output? ii) how do I get Guile to actually output and write the generated files to= =20 disk? I.e. when I run (cgen-desc.h) I get a nice header file listing, but= =20 it's not saved anywhere. Should I just cut-and-paste, or is there some=20 Guile/scheme command to redirect output? I'm assuming that the makefiles i= n=20 binutils are responsible for running cgen and generating the appropriate=20 files, but I'm unclear as to how to configure them to point to the director= y=20 in which I have cgen installed and, furthermore, how to actually have the=20 makefile autogenerate the files for my new architecture... iii) the opcode-port directions say nothing about how to configure binutils= .=20=20 Simply going to a "clean" opcodes directory and editing Makefile.am is=20 clearly not enough to allow you to run a successful 'make dep' (as no=20 makefile actually exists until 'configure' is run from the parent directory= ).=20=20 Doesn't the configure script need to be modified also? What about=20 Makefile.in? iv) and because my understanding of binutils is rather vague... what will= =20 running make dep in /opcodes actually produce for me? what do I need to do= =20 with the resultant files? Overall, I'm getting a handle on how to write a .cpu file, but I'm still=20 virtually clueless when it comes to using it in conjunction with binutils t= o=20 produce an assembler... Dave Carney