From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30394 invoked by alias); 4 Apr 2006 23:35:57 -0000 Received: (qmail 30385 invoked by uid 22791); 4 Apr 2006 23:35:56 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Apr 2006 23:35:55 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k34NZrOV019926; Tue, 4 Apr 2006 19:35:53 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.11.6) with ESMTP id k34NZrgn023413; Tue, 4 Apr 2006 19:35:53 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id k34NZqlO005688; Tue, 4 Apr 2006 19:35:53 -0400 Received: from ton.toronto.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id B928A8002B7; Tue, 4 Apr 2006 19:35:52 -0400 (EDT) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id k34NZq4S013049; Tue, 4 Apr 2006 19:35:52 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id k34NZpFF013047; Tue, 4 Apr 2006 19:35:51 -0400 Date: Tue, 04 Apr 2006 23:35:00 -0000 From: "Frank Ch. Eigler" To: "Lindley, Robert A" Cc: cgen@sourceware.org Subject: Re: I mainly need an as and ld port Message-ID: <20060404233551.GB16498@redhat.com> References: <80890BBB6B38E0419197E69BAE0C989E096DB1@XCH-SW-4V2.sw.nos.boeing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80890BBB6B38E0419197E69BAE0C989E096DB1@XCH-SW-4V2.sw.nos.boeing.com> User-Agent: Mutt/1.4.1i X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2006-q2/txt/msg00002.txt.bz2 Hi - > [...] Is CGEN overkill for what I am trying to do? Not really, but recall that even CGEN handles only a part of the binutils port. There is stuff to hand-write with or without CGEN, and of course more without it. > The Z8000 is sort of close to the MECA-43. Basically all 16 bit > instructions and both 16 and 32 bit data. The more regular, RISC-like the instruction set, the better fit it is for CGEN. > [...] I have no clue how to run Emacs and the info document reader > thing doesn't know anything about the files that I want to look at.) The "make info" in build directories like gas/, bfd/, etc. can help, and some even have a "make html" target in their doc/ subdirs. If it's too much hassle to figure it out, of course the .texi files are readable ASCII. > I can't find out how to make a file like z8kgen.c. All the things > are encoded with codes that I can't find any description of. z8kgen.c is not related to cgen, except perhaps as a motivation. There are several other generator type tools in the whole toolchain (for another, see igen in the gdb simulators). CGEN was meant to unify and generalize them. > Your suggestion of hand-written gas/bfd/ld/simulator code seems > the way to go. Hours of searching has produced no results for > information on the exact files to be made, the exact format of > each files, how to update the make files for automake, etc. etc. There is no substitute for a certain amount of self-education to gain familiarity with the configury system in general, and the specific build procedure for a similar existing target. My simple recipe is to duplicate an existing target by a mass copy & rename. Pick a base target for replication like "iq2000" or "ip2k", which are strings unlikely to occur elsewhere. - FChE