From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32366 invoked by alias); 13 Jan 2009 16:29:28 -0000 Received: (qmail 32243 invoked by uid 22791); 13 Jan 2009 16:29:27 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,KAM_MX,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Jan 2009 16:28:52 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n0DGSn71011499; Tue, 13 Jan 2009 11:28:49 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n0DGSnOm001719; Tue, 13 Jan 2009 11:28:50 -0500 Received: from [127.0.0.1] (vpn-13-32.rdu.redhat.com [10.11.13.32]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n0DGSmCA032231; Tue, 13 Jan 2009 11:28:49 -0500 Message-ID: <496CC140.2020006@redhat.com> Date: Tue, 13 Jan 2009 16:29:00 -0000 From: Dave Brolley User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Venkataramanan Kumar CC: cgen@sourceware.org Subject: Re: Porting Binutils References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00003.txt.bz2 Hi, Generally one starts by cloning an existing port which is similar to the new one. I usually do this by copying all of the files and directories named after the port to be cloned and by grepping the remaining source/Makefiles/scripts for references to the old port and copying them to add the new port. This leaves you with a new port which behaves like the old one. I then start ripping out the details of the old port and replacing them with implementation of the new one. There is some documentation in cgen/doc which may also be helpful for learning the scheme-like cgen .cpu language and how to generate source from the .cpu and .opc files for your port. I hope this helps, Dave Venkataramanan Kumar wrote: > Hi, > > I am working on porting GCC and binutils to a target similar to MIPS. > I have completed basic compiler port. > Now I need to port binutils. Can you please give a brief introduction > on how to start using CGEN. > > Thank is advance. >