arena allocator + incremental garbage collector
  • C++ 98.4%
  • CMake 1.6%
Find a file
2024-09-14 14:05:05 -05:00
.github/workflows github: + xo-ordinaltree dep 2023-10-18 12:19:43 -04:00
cmake xo-simulator: build: update to latest xo-cmake macros 2024-09-14 14:05:05 -05:00
include/xo/simulator initial implementation 2023-10-18 11:47:12 -04:00
src/simulator build: streamline CMAKE_MODULE_PATH interaction 2024-03-15 19:38:10 -04: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