Re: Configurable Assembler?

Michael Meissner <>
3 Nov 1997 21:01:22 -0500

          From comp.compilers

Related articles
Configurable Assembler? (Todd L. Cignetti) (1997-11-02)
Re: Configurable Assembler? (Michael Meissner) (1997-11-03)
Re: Configurable Assembler? (1997-11-07)
Re: Configurable Assembler? (Robert Hansen) (1997-11-07)
Re: Configurable Assembler? (1997-11-09)
| List of all articles for this month |

From: Michael Meissner <>
Newsgroups: comp.compilers
Date: 3 Nov 1997 21:01:22 -0500
Organization: Compilers Central
References: 97-11-014
Keywords: assembler

"Todd L. Cignetti" <> 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

-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, 617-354-5416 (office), 617-354-7161 (fax)

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.