GNU Simulator Project
This is the loose landing page for the GNU Simulator project. It is a processor/hardware simulator that is integrated into the binutils/gdb source repo and shipped as part of gdb itself.
Source
Releases are part of gdb, so grab a release of that.
Current code can be found in the binutils-gdb.git repo: https://sourceware.org/git/?p=binutils-gdb.git;a=tree;f=sim
Building
Once you have the source repo, run configure like normal. e.g. For a Blackfin target:
./configure --target=bfin-elf
Then build the sim directory:
make -j4 all-sim
Running
The build will produce a run binary you can use to execute ELFs directly, and a libsim.a library you can use to link the simulator into your own project.
Supported Targets
These are the architectures currently supported:
CPU |
Maker |
Details |
AARCH64 |
ARM |
ARMv8 / ARM64 |
ARM |
ARM |
|
AVR |
Atmel |
8-bit & 16-bit MCUs |
Blackfin |
Analog Devices, Inc. |
All but BF535 |
CompactRISC |
National Semiconductor |
CR16 |
CRIS |
Axis Communications |
|
D10V |
??? |
|
SPARC |
Sun/Oracle |
erc32 |
FRV |
Fujitsu |
|
FT32 |
FTDI |
|
H8/300 |
NEC / Renesas |
|
IQ2000 |
Vitesse |
|
Lattice Semiconductor |
lm32 |
|
M32C |
NEC / Renesas |
|
M32R |
Mitsubishi / NEC / Renesas |
|
68HC11 |
Motorola / Freescale |
m68hc11 & m68hc12 |
MCORE |
Motorola / Freescale |
|
Xilinx |
|
|
MIPS |
MIPS Technologies |
microMIPS & MIPS32 & MIPS64 & more |
MN103 |
Matsushita / Panasonic |
mn10300 |
Moxie |
Anthony Green |
A soft-core |
MSP430 |
Texas Instruments |
|
PowerPC |
IBM |
|
RL78 |
Renesas |
|
RX |
Renesas |
RX & RXv2 |
SuperH |
Hitachi / Renesas |
SH2 & SH3E & SH4 & SH5 |
V850 |
Renesas |
|
New Targets
If you want to add support for a new target, please see the Sim/Porting page.