The G21 package

The G21 package collects the free source code for the Analog Devices GCC-based C compilers for their 21k (Sharc) and 21xx series DSPs. These compilers are all based on the GCC version 2.3.3.

This package is based on the source code made available from Analog Devices. It integrates 3 different compilers, and additionally contains the necessary changes and glue for easy installation on various Unices, as well as a few minor bug fixes and improvements.


This version has mostly been tested under Linux/i386. Since all GCC host configuration files have been included, it will probably work under many other Unices with no or minimum work. The code does rely on the host using the IEEE float format.

To compile you will need, in addition to a good C compiler, various GNU tools like gperf and bison.

Altough it is believed that the compilers and tools are all right, they really have not been thoroughly verified for correctness.

What is missing?

Please also note that these packages contain the compiler, the assembler and the linker only. The source code for the Analog Devices debugger and emulator is also available, but porting to X and Unix has not been performed. Additionally, there is no library.


The G21 package in source code form is available from

The assembler and linker source code is available from

Legal matter

The G21 package is
Copyright 1987, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
Copyright 1995 Analog Devices Inc.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Press here to go to the home page.

[Enhanced for Lynx]
This page is being maintained by Egil Kvaleberg. Please report errors, updates, suggestions and comments to

Latest update: July 14th 2001