deterministic event-based simulator for c++
  • C++ 92.3%
  • CMake 7.7%
Find a file
Roland Conybeare ef159a596d
Some checks failed
build xo-simulator + xo dependencies / build (push) Has been cancelled
Split 'xo-cmake/' into commit 'dc64cba29d'
git-subtree-dir: xo-cmake
git-subtree-mainline: 933c6bbbbba2763681038be4f885479b6cbaadf0
git-subtree-split: dc64cba29d
2026-05-31 10:18:25 -04:00
.github/workflows github: + xo-ordinaltree dep 2023-10-18 12:19:43 -04:00
cmake xo-cmake: setup to make share target available via cmake install 2026-02-27 19:38:53 +11:00
include/xo/simulator pretty printing -- copmlete for xo::ast::GeneralizedExpression 2025-07-19 11:47:03 -05:00
src/simulator pretty printing -- copmlete for xo::ast::GeneralizedExpression 2025-07-19 11:47:03 -05:00
.gitignore build: streamline CMAKE_MODULE_PATH interaction 2024-03-15 19:38:10 -04:00
CMakeLists.txt xo-simulator: build: update to latest xo-cmake macros 2024-09-14 14:05:05 -05:00
README.md doc: + README.md 2023-10-18 12:19:58 -04:00

simulator library

in-memory deterministic simulator

Getting Started

build + install dependencies

build+install these first

build + install xo-simulator

$ cd xo-simulator
$ mkdir build
$ cd build
$ INSTALL_PREFIX=/usr/local  # or wherever you prefer
$ cmake -DCMAKE_MODULE_PATH=${INSTALL_PREFIX}/share/cmake -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} ..
$ make
$ make install

(also see .github/workflows/main.yml)

build for unit test coverage

$ cd xo-simulator
$ mkdir ccov
$ cd ccov
$ cmake -DCMAKE_MODULE_PATH=${INSTALL_PREFIX}/share/cmake  -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} -DCODE_COVERAGE=ON -DCMAKE_BUILD_TYPE=Debug ..

Development

LSP support

LSP looks for compile commands in the root of the source tree; cmake creates them in the root of its build directory.

$ cd xo-simulator
$ ln -s build/compile_commands.json

display cmake variables

  • -L list variables
  • -A include 'advanced' variables
  • -H include help text
$ cd xo-simulator/build
$ cmake -LAH