Skip to content

Structuring architectures

Konstantin Kompan edited this page Jun 28, 2020 · 2 revisions
  • Architectures are defined in directories under isa/ path. Directory should be named as same as your arch. Each arch is defined in separate directory - you can work with multiple architectures without any hazards.
  • Inside directory, there should be at least 3 files: registers description, instruction description and CMakeLists.txt with the following content:
cmake_minimum_required(VERSION 3.12)

set(ARCH "your_arch_name")
set(ISA_SRC "your_ISA_decription_file")
set(REGISTERS_SRC "your_registers_description_file")
include("../isa_target.cmake")

This will create 3 build targets: isa-${ARCH} (generate code for your arch), vasm-${ARCH} (assembler) and vmm-${ARCH} (machine).

Clone this wiki locally