|Configurable Assembler? firstname.lastname@example.org (Todd L. Cignetti) (1997-11-02)|
|Re: Configurable Assembler? email@example.com (Michael Meissner) (1997-11-03)|
|Re: Configurable Assembler? firstname.lastname@example.org (1997-11-07)|
|Re: Configurable Assembler? email@example.com (Robert Hansen) (1997-11-07)|
|Re: Configurable Assembler? firstname.lastname@example.org (1997-11-09)|
|From:||Michael Meissner <email@example.com>|
|Date:||3 Nov 1997 21:01:22 -0500|
"Todd L. Cignetti" <firstname.lastname@example.org> writes:
> I am looking for an assembler that allows me to specify the instructions
> and the corresponding opcodes. Basically, I need to add new opcodes to
> an existing instruction set.
> I thought there was a GNU tool or some other publito do this, but I
> can't remember what it's called. Does anyone know where to find
> something like this?
The gnu tool is called the GNU assembler, which is located in the binutils
package. The current revision of binutils is 2.8.1, and it is available on
most systems that mirrors GNU software and/or prep.ai.mit.edu:/pub/gnu.
-rw-r--r-- 2 14910 23059 5139402 May 28 22:41 binutils-2.8.1.tar.gz
To add new instructions in the GNU assembler, it depends on whether the new
instruction looks like another instruction (same inputs, etc.), you typically
just need to modify binutils-<rev>/opcodes/<machine>-opc.h (the format varies
per machine, so you need to look at the particular machine you are interested
in). If you need to take different types, etc. you may also need to modify
binutils-<rev>/gas/config/tc-<machine>.c and possibly other files as well.
Michael Meissner, Cygnus Solutions (Massachusetts office)
4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA
email@example.com, 617-354-5416 (office), 617-354-7161 (fax)
Return to the
Search the comp.compilers archives again.