# eembc/coremark architecture

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

- Interactive diagram: https://gitdiagram.com/eembc/coremark
- Repository: https://github.com/eembc/coremark

## Overview

CoreMark is a processor-core benchmark. The user runs it with selected seeds and iteration settings; the program initializes benchmark data, times repeated execution, checks CRCs and reports performance and validation results. Its workload includes linked-list, matrix and state-machine benchmarks, with platform-specific timing, initialization and execution support. The excerpts establish the main orchestration and list-to-matrix/state calls; other internal calls and platform wiring are not shown, so those links are omitted.

Main entry points: [`core_main.c`](https://github.com/eembc/coremark/blob/main/core_main.c) (Run orchestration), [`core_list_join.c`](https://github.com/eembc/coremark/blob/main/core_list_join.c) (Iteration driver), [`core_matrix.c`](https://github.com/eembc/coremark/blob/main/core_matrix.c) (Matrix workload), [`core_state.c`](https://github.com/eembc/coremark/blob/main/core_state.c) (State workload)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_run["Benchmark runtime"]
  node_main["Run orchestration<br/>[core_main.c]"]
  node_iterate["Iteration driver<br/>[core_list_join.c]"]
  node_results["CRC and results<br/>[core_main.c]"]
  node_utilities["Seeds and CRC<br/>[core_util.c]"]
  node_interfaces["Benchmark interfaces<br/>[coremark.h]"]
end

subgraph group_workloads["Benchmark workloads"]
  node_list["List workload<br/>[core_list_join.c]"]
  node_matrix["Matrix workload<br/>[core_matrix.c]"]
  node_state["State workload<br/>[core_state.c]"]
end

subgraph group_platform["Platform support"]
  node_posix["POSIX port<br/>[core_portme.c]"]
  node_posix_config["POSIX configuration<br/>[core_portme.h]"]
  node_barebones["Barebones port<br/>[core_portme.c]"]
  node_simple["Simple port<br/>[core_portme.c]"]
end

node_user(("Benchmark user"))

node_user -->|"runs"| node_main
node_main -->|"executes"| node_iterate
node_iterate -->|"dispatches"| node_state
node_iterate -->|"dispatches"| node_matrix
node_main -->|"reports"| node_results
node_main -.->|"initializes port"| node_posix

click node_main "https://github.com/eembc/coremark/blob/main/core_main.c"
click node_iterate "https://github.com/eembc/coremark/blob/main/core_list_join.c"
click node_results "https://github.com/eembc/coremark/blob/main/core_main.c"
click node_list "https://github.com/eembc/coremark/blob/main/core_list_join.c"
click node_matrix "https://github.com/eembc/coremark/blob/main/core_matrix.c"
click node_state "https://github.com/eembc/coremark/blob/main/core_state.c"
click node_utilities "https://github.com/eembc/coremark/blob/main/core_util.c"
click node_interfaces "https://github.com/eembc/coremark/blob/main/coremark.h"
click node_posix "https://github.com/eembc/coremark/blob/main/posix/core_portme.c"
click node_posix_config "https://github.com/eembc/coremark/blob/main/posix/core_portme.h"
click node_barebones "https://github.com/eembc/coremark/blob/main/barebones/core_portme.c"
click node_simple "https://github.com/eembc/coremark/blob/main/simple/core_portme.c"

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_main,node_iterate,node_results,node_utilities,node_interfaces,node_user toneBlue
class node_list,node_matrix,node_state toneAmber
class node_posix,node_posix_config,node_barebones,node_simple toneMint
```

## Components

### Benchmark runtime

- [Run orchestration](https://github.com/eembc/coremark/blob/main/core_main.c): `core_main.c`
- [Iteration driver](https://github.com/eembc/coremark/blob/main/core_list_join.c): `core_list_join.c`
- [CRC and results](https://github.com/eembc/coremark/blob/main/core_main.c): `core_main.c`
- [Seeds and CRC](https://github.com/eembc/coremark/blob/main/core_util.c): `core_util.c`
- [Benchmark interfaces](https://github.com/eembc/coremark/blob/main/coremark.h): `coremark.h`

### Benchmark workloads

- [List workload](https://github.com/eembc/coremark/blob/main/core_list_join.c): `core_list_join.c`
- [Matrix workload](https://github.com/eembc/coremark/blob/main/core_matrix.c): `core_matrix.c`
- [State workload](https://github.com/eembc/coremark/blob/main/core_state.c): `core_state.c`

### Platform support

- [POSIX port](https://github.com/eembc/coremark/blob/main/posix/core_portme.c): `posix/core_portme.c`
- [POSIX configuration](https://github.com/eembc/coremark/blob/main/posix/core_portme.h): `posix/core_portme.h`
- [Barebones port](https://github.com/eembc/coremark/blob/main/barebones/core_portme.c): `barebones/core_portme.c`
- [Simple port](https://github.com/eembc/coremark/blob/main/simple/core_portme.c): `simple/core_portme.c`

### Other components

- **Benchmark user**

## Connections

- Benchmark user → Run orchestration: runs (evidence: `README.md`)
- Run orchestration → Iteration driver: executes (evidence: `core_main.c`)
- Iteration driver → State workload: dispatches (evidence: `core_list_join.c`)
- Iteration driver → Matrix workload: dispatches (evidence: `core_list_join.c`)
- Run orchestration → CRC and results: reports (evidence: `README.md`)
- Run orchestration → POSIX port: initializes port
