From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26090 invoked by alias); 6 Sep 2002 16:56:27 -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 26081 invoked from network); 6 Sep 2002 16:56:25 -0000 Received: from unknown (HELO web21205.mail.yahoo.com) (216.136.131.248) by sources.redhat.com with SMTP; 6 Sep 2002 16:56:25 -0000 Message-ID: <20020906165624.98781.qmail@web21205.mail.yahoo.com> Received: from [202.165.233.2] by web21205.mail.yahoo.com via HTTP; Fri, 06 Sep 2002 09:56:24 PDT Date: Fri, 06 Sep 2002 09:56:00 -0000 From: Shehryar Humayun Subject: Re: Porting opcodes To: JCastillo Cc: cgen@sources.redhat.com In-Reply-To: <001201c255bc$9b3faf90$22bb90c1@javier> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-q3/txt/msg00057.txt.bz2 Hi, I have generated 8 files for opcodes, though the prefixes such as @arch@ in generated files have not been replaced with m32r e.g. Otherwise,the files are the same as currently available in binutils/opocodes/. Here are the steps I followed: 0. Untar Guile and CGEN sources in some directories 1. I installed Guile-1.4.1 2. I created a temporary build directory 3. cd to it 4. Write: /root/cgen-1.0/configure srcdir=/root/cgen-1.0/cgen/ --target=m32r" 5. After configuring, write make opcodes ARCH=m32r in the same build directory. 6. This generates the 8 opcode files. 7. To generate architecture description files, write make desc ARCH=m32r 8. To port GAS, you still have to write tc-arch.[ch] files in which you would call some of the generated files. Take a close look at fr30 or m32r frameworks, their tc-arch.[ch] files in binutils source tree, as well as the 8 opcode files. If there is a problem in following the steps for generating files, do let me know. I would love to help in any possible way. I am new myself and would be of little help though. Regards Shehryar ******************************************************* --- JCastillo wrote: > Hello. > > I read your posts in the cgen mailing list and I am > in the same situation as you. I have to make a port > of an architecture with DSP extensions but > I am very confused about the use of cgen. > I am attempting to follow the instructions to > generate the opcodes port but I donĀ“t know how to > obtain the files of the port and what to do with > them next. > I will be very gratefull if you can explain in > detail the steps I have to follow to obtain a gas > port from a .cpu file. > > Thank you very much > > > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com