From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29215 invoked by alias); 21 Nov 2001 16:07:18 -0000 Mailing-List: contact cgen-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.cygnus.com Received: (qmail 29155 invoked from network); 21 Nov 2001 16:07:09 -0000 X-Authentication-Warning: kayak.mcgary.org: gkm set sender to greg@mcgary.org using -f To: "Stephen Done" Cc: Subject: Re: Using CGEN Disassembler References: From: Greg McGary Date: Tue, 06 Nov 2001 08:48:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2001-q4/txt/msg00017.txt.bz2 "Stephen Done" writes: > I don't run the box I am using, so installing a new version of binutils > could be tricky. You needn't install binutils in any official place in order to build an m32r assembler that uses CGEN opcode tables. I'm just talking about configuring and building binutils, and possibly installing in a directory where you have write permission, such as somewhere under your homedir (via configure's --prefix= option). It sounds as though you need more experience with the basics of configuring and building GNU packages. See the README and INSTALL files at the toplevel dir of any GNU package.) > Fundamental question: > What are the names of the cgen binaries ? This is the target that generates opcode tables in opcodes/Makefile.in: run-cgen: $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \ $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) \ "$(options)" $(extrafiles) touch stamp-${prefix} This is what it looks like at `make all-gas' time: make[3]: Entering directory `/1/redback/tools-src/cygnus-unified/HOST-i686-pc-linux,TARGET-ppa/opcodes' make run-cgen arch=ppa prefix=ppa options= extrafiles= make[4]: Entering directory `/1/redback/tools-src/cygnus-unified/HOST-i686-pc-linux,TARGET-ppa/opcodes' /bin/sh ../../src/opcodes/cgen.sh opcodes ../../src/opcodes `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` \ ../../src/opcodes/../cgen "-v" ppa ppa \ "" Skipping slib/sort, already loaded. Skipping slib/random, already loaded. cgen -s ../../src/opcodes/../cgen/cgen-opc.scm -s ../../src/opcodes/../cgen -v -f -m all -a ppa -H tmp-desc.h1 -C tmp-desc.c1 -O tmp-opc.h1 -P tmp-opc.c1 -L tmp-ibld.in1 -A tmp-asm.in1 -D tmp-dis.in1 Loading cpu file ../../src/opcodes/../cgen/ppa.cpu ... Including file simplify.inc ... Processing cpu file ../../src/opcodes/../cgen/ppa.cpu ... Analyzing instruction set ... Done analysis. Generating ppa desc.h ... Generating ppa desc.c ... Generating ppa-opc.h ... Generating ppa-opc.c ... Generating ppa-ibld.in ... Generating ppa-asm.in ... Generating ppa-dis.in ... ../../src/opcodes/ppa-desc.h is unchanged ../../src/opcodes/ppa-desc.c is unchanged ../../src/opcodes/ppa-opc.h is unchanged ../../src/opcodes/ppa-opc.c is unchanged ../../src/opcodes/ppa-ibld.c is unchanged ../../src/opcodes/ppa-asm.c is unchanged ../../src/opcodes/ppa-dis.c is unchanged touch stamp-ppa > Hopefully they're already installed on the box, so I won't need to get > anything updated. All you need installed is guile. The cgen implementation is provided as scheme source code in the cgen/ subdir. > I assumed 'cgen', but that isn't present. Each "application" has a cgen.sh script which serves as the entry-point. The cgen "applications" are those that generate (dis)assembler opcode tables and insn simulator semantic hooks. They reside in opcodes/cgen.sh and sim/common/cgen.sh > Is there a docs page that explains what each binary does ? Dunno. If it's not in the cgen manual, you must rely on reading the code: the cgen.sh scripts and the makefiles that invoke them. > Maybe the new binutils has man pages for the binaries. Probably not. Greg From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg McGary To: "Stephen Done" Cc: Subject: Re: Using CGEN Disassembler Date: Wed, 21 Nov 2001 08:07:00 -0000 Message-ID: References: X-SW-Source: 2001-q4/msg00042.html Message-ID: <20011121080700.htgY4VXZpd_UmOMhRsM9KoKzDnwdSrjYT4mi_EDctLA@z> "Stephen Done" writes: > I don't run the box I am using, so installing a new version of binutils > could be tricky. You needn't install binutils in any official place in order to build an m32r assembler that uses CGEN opcode tables. I'm just talking about configuring and building binutils, and possibly installing in a directory where you have write permission, such as somewhere under your homedir (via configure's --prefix= option). It sounds as though you need more experience with the basics of configuring and building GNU packages. See the README and INSTALL files at the toplevel dir of any GNU package.) > Fundamental question: > What are the names of the cgen binaries ? This is the target that generates opcode tables in opcodes/Makefile.in: run-cgen: $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \ $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) \ "$(options)" $(extrafiles) touch stamp-${prefix} This is what it looks like at `make all-gas' time: make[3]: Entering directory `/1/redback/tools-src/cygnus-unified/HOST-i686-pc-linux,TARGET-ppa/opcodes' make run-cgen arch=ppa prefix=ppa options= extrafiles= make[4]: Entering directory `/1/redback/tools-src/cygnus-unified/HOST-i686-pc-linux,TARGET-ppa/opcodes' /bin/sh ../../src/opcodes/cgen.sh opcodes ../../src/opcodes `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` \ ../../src/opcodes/../cgen "-v" ppa ppa \ "" Skipping slib/sort, already loaded. Skipping slib/random, already loaded. cgen -s ../../src/opcodes/../cgen/cgen-opc.scm -s ../../src/opcodes/../cgen -v -f -m all -a ppa -H tmp-desc.h1 -C tmp-desc.c1 -O tmp-opc.h1 -P tmp-opc.c1 -L tmp-ibld.in1 -A tmp-asm.in1 -D tmp-dis.in1 Loading cpu file ../../src/opcodes/../cgen/ppa.cpu ... Including file simplify.inc ... Processing cpu file ../../src/opcodes/../cgen/ppa.cpu ... Analyzing instruction set ... Done analysis. Generating ppa desc.h ... Generating ppa desc.c ... Generating ppa-opc.h ... Generating ppa-opc.c ... Generating ppa-ibld.in ... Generating ppa-asm.in ... Generating ppa-dis.in ... ../../src/opcodes/ppa-desc.h is unchanged ../../src/opcodes/ppa-desc.c is unchanged ../../src/opcodes/ppa-opc.h is unchanged ../../src/opcodes/ppa-opc.c is unchanged ../../src/opcodes/ppa-ibld.c is unchanged ../../src/opcodes/ppa-asm.c is unchanged ../../src/opcodes/ppa-dis.c is unchanged touch stamp-ppa > Hopefully they're already installed on the box, so I won't need to get > anything updated. All you need installed is guile. The cgen implementation is provided as scheme source code in the cgen/ subdir. > I assumed 'cgen', but that isn't present. Each "application" has a cgen.sh script which serves as the entry-point. The cgen "applications" are those that generate (dis)assembler opcode tables and insn simulator semantic hooks. They reside in opcodes/cgen.sh and sim/common/cgen.sh > Is there a docs page that explains what each binary does ? Dunno. If it's not in the cgen manual, you must rely on reading the code: the cgen.sh scripts and the makefiles that invoke them. > Maybe the new binutils has man pages for the binaries. Probably not. Greg