From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19367 invoked by alias); 17 Feb 2003 14:59:42 -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 19358 invoked from network); 17 Feb 2003 14:59:41 -0000 Received: from unknown (HELO web21204.mail.yahoo.com) (216.136.131.77) by 172.16.49.205 with SMTP; 17 Feb 2003 14:59:41 -0000 Message-ID: <20030217145940.68143.qmail@web21204.mail.yahoo.com> Received: from [202.165.233.2] by web21204.mail.yahoo.com via HTTP; Mon, 17 Feb 2003 06:59:40 PST Date: Mon, 17 Feb 2003 14:59:00 -0000 From: Shehryar Humayun Subject: Porting Opcodes using CGEN To: cgen@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q1/txt/msg00052.txt.bz2 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 /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 /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