From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18835 invoked by alias); 26 Aug 2002 07:21:56 -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 18825 invoked from network); 26 Aug 2002 07:21:53 -0000 Received: from unknown (HELO hotmail.com) (64.4.37.64) by sources.redhat.com with SMTP; 26 Aug 2002 07:21:53 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 26 Aug 2002 00:21:53 -0700 Received: from 61.175.193.50 by pv2fd.pav2.hotmail.msn.com with HTTP; Mon, 26 Aug 2002 07:21:53 GMT X-Originating-IP: [61.175.193.50] From: =?gb2312?B?uagg1LTIqg==?= To: cgen@sources.redhat.com Bcc: Subject: a question about doing an opcodes port Date: Mon, 26 Aug 2002 00:21:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 26 Aug 2002 07:21:53.0255 (UTC) FILETIME=[406CE770:01C24CD1] X-SW-Source: 2002-q3/txt/msg00019.txt.bz2 Dear Mr Ben, When I was doing an opcodes port using CGEN following the manual:(http://sources.redhat.com/cgen/docs-1.0/cgen_5.html#SEC163) 1.Run guile. 2.(load "dev.scm"). This loads in a set of interactive development routines. 3.(load-opc). Load the opcodes support. 4.Edit your `cpu/.cpu' and `cpu/.opc' files. The `.cpu' file is the main description file. The `.opc' file provides additional C support code. 5.(cload #:arch "cpu/") 6.Run each of: (cgen-desc.h) (cgen-desc.c) (cgen-opc.h) (cgen-opc.c) (cgen-ibld.in) (cgen-asm.in) (cgen-dis.in) (cgen-opinst.c) -- [optional] 7.Repeat steps 4, 5 and 6 until the output looks reasonable. 8.Add dependencies to `opcodes/Makefile.am' to generate the eight opcodes files (use the M32R port as an example). 9.Run make dep from the `opcodes' build directory. 10.Run make all-opcodes from the top level build directory I had the following questions: What is the directory "opcodes" in step 8, does it refer to the opcodes directory in the binutils(I have downloaded binutils-2.12 from the gnu ftp)package? What does "Add dependencies to "opcodes/Makefile.am" mean? What are the eight opcodes files? In what directory should I run the make instruction in step 9 and 10? By the way, could you please give me an explanation about port? Thanks for your help! _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.microsoft.com/cn/