This is the mail archive of the
mailing list for the binutils project.
- From: Nick Clifton <nickc at redhat dot com>
- To: David Carney <dfcarney at net-itech dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 09 Dec 2002 12:46:16 +0000
- Subject: Re: assembler
- References: <firstname.lastname@example.org>
> I'd like to expand the gnu assembler to work with a (currently)
> unsupported chip/ISA. Can anyone direct me to information or
> documentation relating to how I should go about this?
The best documentation are the sources themselves.
Before attempting to create your own port of GAS, you should consider
the CGEN tool which allows the creation of the assembler, disassembler
and simulator, all from one unified set of files describing the ISA:
There is some documentation on the internals of GAS in the
gas/doc/internals.texi file, although it can be out of date in
The easiest method for creating a new port is to base it on an already
existing port. Pick an architecture with which you are familiar and
to which GAS has already been ported. Look in the include/ opcodes/
gas/ and bfd/ directories (and subdirectories) for files related to
this familiar port and use them as templates for creating your own