# eeeslab/tricore-binutils-gdb architecture

> Architecture diagram of the GitHub repository eeeslab/tricore-binutils-gdb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eeeslab/tricore-binutils-gdb
- Repository: https://github.com/eeeslab/tricore-binutils-gdb

## Overview

This repository is a suite of GNU development tools rather than one application: assemblers, linkers, debuggers, simulators, object-file support, and related utilities. A typical workflow starts with source assembly, produces object files, links them into executable output, and uses a debugger or simulator to inspect or run programs. The map also preserves distinct tools and subsystems described by the tree and README. Edges are limited to relationships stated in the README or visible in supplied source-index references and excerpts; some integrations are therefore omitted.

Main entry points: [`gold/main.cc`](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/main.cc) (gold linker), [`gdb/main.c`](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/main.c) (GDB), [`sim/common/sim-engine.c`](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/common/sim-engine.c) (Simulator engine), [`gdbserver/server.cc`](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdbserver/server.cc) (Remote server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_assembly["Assembly"]
  node_gas["Assembler<br/>[as.c]"]
  node_gascore["Assembly core<br/>[app.c]"]
end

subgraph group_linking["Linking"]
  node_ld["GNU linker<br/>[ldlang.c]"]
  node_gold["gold linker<br/>[main.cc]"]
  node_goldobjects["Input objects<br/>[object.h]"]
  node_goldarchive["Archives<br/>[archive.h]"]
  node_goldsymbols["Symbol table<br/>[symtab.h]"]
  node_goldlayout["Output layout<br/>[layout.h]"]
  node_goldoptions["Linker options<br/>[options.h]"]
  node_goldwork["Task processing<br/>[workqueue.h]"]
  node_goldincremental["Incremental linking<br/>[incremental.h]"]
end

subgraph group_debugging["Debugging"]
  node_gdb["GDB<br/>[main.c]"]
  node_gdbcli["CLI commands<br/>[cli-cmds.h]"]
  node_gdbtarget["Target interface<br/>[target.h]"]
  node_gdbserver["Remote server<br/>[server.cc]"]
  node_serverstate["Thread state<br/>[gdbthread.h]"]
  node_dap["DAP server<br/>[server.py]"]
end

subgraph group_runtime["Simulation"]
  node_simengine["Simulator engine<br/>[sim-engine.c]"]
  node_ppcsim["PowerPC simulator<br/>[main.c]"]
  node_rxsim["RX simulator<br/>[main.c]"]
  node_m32csim["M32C simulator<br/>[main.c]"]
  node_frvpipe["FRV pipeline<br/>[pipeline.c]"]
  node_igen["IGEN engine generator<br/>[gen-engine.c]"]
end

subgraph group_support["Object support"]
  node_bfd["BFD object support<br/>[bfd.c]"]
  node_binutils["Binary utilities<br/>[objdump.c]"]
  node_gdbsupport["GDB support<br/>[event-loop.h]"]
end

node_developer(("Developer"))

node_developer -->|"assembles with"| node_gas
node_developer -->|"links with"| node_ld
node_developer -->|"links with"| node_gold
node_developer -->|"debugs with"| node_gdb
node_gas -->|"uses core"| node_gascore
node_gold -->|"reads options"| node_goldoptions
node_gold -->|"processes objects"| node_goldobjects
node_gold -->|"processes archives"| node_goldarchive
node_gold -->|"updates symbols"| node_goldsymbols
node_gold -->|"sets layout"| node_goldlayout
node_gold -->|"runs tasks"| node_goldwork
node_gdb -->|"uses target"| node_gdbtarget
node_gdb -->|"uses commands"| node_gdbcli
node_gdbserver -->|"uses thread state"| node_serverstate
node_gdbserver -->|"uses target API"| node_gdbtarget
node_dap -.->|"serves debugger protocol"| node_developer
node_ppcsim -.->|"uses runtime"| node_simengine
node_rxsim -->|"opens object file"| node_bfd
node_m32csim -->|"opens object file"| node_bfd
node_frvpipe -.->|"models execution"| node_simengine
node_igen -.->|"generates engine"| node_simengine
node_developer -.->|"uses utilities"| node_binutils

click node_gas "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gas/as.c"
click node_gascore "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gas/app.c"
click node_ld "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/ld/ldlang.c"
click node_gold "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/main.cc"
click node_goldobjects "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/object.h"
click node_goldarchive "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/archive.h"
click node_goldsymbols "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/symtab.h"
click node_goldlayout "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/layout.h"
click node_gdb "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/main.c"
click node_gdbcli "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/cli/cli-cmds.h"
click node_gdbtarget "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/target.h"
click node_gdbserver "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdbserver/server.cc"
click node_serverstate "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdbserver/gdbthread.h"
click node_dap "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/python/lib/gdb/dap/server.py"
click node_simengine "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/common/sim-engine.c"
click node_ppcsim "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/ppc/main.c"
click node_rxsim "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/rx/main.c"
click node_m32csim "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/m32c/main.c"
click node_frvpipe "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/frv/pipeline.c"
click node_igen "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/igen/gen-engine.c"
click node_bfd "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/bfd/bfd.c"
click node_binutils "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/binutils/objdump.c"
click node_gdbsupport "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdbsupport/event-loop.h"
click node_goldoptions "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/options.h"
click node_goldwork "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/workqueue.h"
click node_goldincremental "https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/incremental.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_gas,node_gascore toneBlue
class node_ld,node_gold,node_goldobjects,node_goldarchive,node_goldsymbols,node_goldlayout,node_goldoptions,node_goldwork,node_goldincremental toneAmber
class node_gdb,node_gdbcli,node_gdbtarget,node_gdbserver,node_serverstate,node_dap toneMint
class node_simengine,node_ppcsim,node_rxsim,node_m32csim,node_frvpipe,node_igen toneRose
class node_bfd,node_binutils,node_gdbsupport,node_developer toneIndigo
```

## Components

### Assembly

- [Assembler](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gas/as.c): `gas/as.c`
- [Assembly core](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gas/app.c): `gas/app.c`

### Linking

- [GNU linker](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/ld/ldlang.c): `ld/ldlang.c`
- [gold linker](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/main.cc): `gold/main.cc`
- [Input objects](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/object.h): `gold/object.h`
- [Archives](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/archive.h): `gold/archive.h`
- [Symbol table](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/symtab.h): `gold/symtab.h`
- [Output layout](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/layout.h): `gold/layout.h`
- [Linker options](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/options.h): `gold/options.h`
- [Task processing](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/workqueue.h): `gold/workqueue.h`
- [Incremental linking](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gold/incremental.h): `gold/incremental.h`

### Debugging

- [GDB](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/main.c): `gdb/main.c`
- [CLI commands](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/cli/cli-cmds.h): `gdb/cli/cli-cmds.h`
- [Target interface](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/target.h): `gdb/target.h`
- [Remote server](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdbserver/server.cc): `gdbserver/server.cc`
- [Thread state](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdbserver/gdbthread.h): `gdbserver/gdbthread.h`
- [DAP server](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdb/python/lib/gdb/dap/server.py): `gdb/python/lib/gdb/dap/server.py`

### Simulation

- [Simulator engine](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/common/sim-engine.c): `sim/common/sim-engine.c`
- [PowerPC simulator](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/ppc/main.c): `sim/ppc/main.c`
- [RX simulator](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/rx/main.c): `sim/rx/main.c`
- [M32C simulator](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/m32c/main.c): `sim/m32c/main.c`
- [FRV pipeline](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/frv/pipeline.c): `sim/frv/pipeline.c`
- [IGEN engine generator](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/sim/igen/gen-engine.c): `sim/igen/gen-engine.c`

### Object support

- [BFD object support](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/bfd/bfd.c): `bfd/bfd.c`
- [Binary utilities](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/binutils/objdump.c): `binutils/objdump.c`
- [GDB support](https://github.com/eeeslab/tricore-binutils-gdb/blob/master/gdbsupport/event-loop.h): `gdbsupport/event-loop.h`

### Other components

- **Developer**

## Connections

- Developer → Assembler: assembles with (evidence: `README`)
- Developer → GNU linker: links with (evidence: `README`)
- Developer → gold linker: links with (evidence: `README`)
- Developer → GDB: debugs with (evidence: `README`)
- Assembler → Assembly core: uses core
- gold linker → Linker options: reads options (evidence: `gold/main.cc`)
- gold linker → Input objects: processes objects (evidence: `gold/main.cc`)
- gold linker → Archives: processes archives (evidence: `gold/main.cc`)
- gold linker → Symbol table: updates symbols (evidence: `gold/main.cc`)
- gold linker → Output layout: sets layout (evidence: `gold/main.cc`)
- gold linker → Task processing: runs tasks (evidence: `gold/main.cc`)
- GDB → Target interface: uses target (evidence: `gdb/main.c`)
- GDB → CLI commands: uses commands (evidence: `gdb/main.c`)
- Remote server → Thread state: uses thread state (evidence: `gdbserver/server.cc`)
- Remote server → Target interface: uses target API
- DAP server → Developer: serves debugger protocol
- PowerPC simulator → Simulator engine: uses runtime
- RX simulator → BFD object support: opens object file (evidence: `sim/rx/main.c`)
- M32C simulator → BFD object support: opens object file (evidence: `sim/m32c/main.c`)
- FRV pipeline → Simulator engine: models execution
- IGEN engine generator → Simulator engine: generates engine
- Developer → Binary utilities: uses utilities
