segfaultcpp / lc3_rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lc3_rs

This project is implementation of LC-3 virtual machine based on this article on Rust. The project also contains some examples for running on the virtual machine.

Build

Before compiling the Rust project you need to compile cpp/terminal_setup.cpp as static library.

clang

clang -c -o cpp/terminal_setup.o cpp/terminal_setup.cpp
llvm-ar rc cpp/terminal_setup.lib cpp/terminal_setup.o

gcc (on linux)

gcc -c -o cpp/terminal_setup.o cpp/terminal_setup.cpp
ar rcs cpp/terminal_setup.a cpp/terminal_setup.o

Once you've got the static library you can compile the Rust project with cargo.

About


Languages

Language:Rust 85.5%Language:C++ 13.0%Language:Batchfile 0.7%Language:Shell 0.7%