EN: GSVirtualMachine - VM for executing bitecode from GSLanguageCompiler written in C++20. The VM is under development.
RU: GSVirtualMachine - ВМ для исполнения байткода из GSLanguageCompiler, написанная на C++20. ВМ находится в стадии разработки.
1) cd {pathToDir}
2) git clone https://github.com/EldarSalmanow/GSVirtualMachine.git --recurse-submodules- Go to the directory to clone the repository.
- Cloning repository.
1) cd {pathToDir}/GSVirtualMachine
2) mkdir build
3) cd build
4) cmake -G "Visual Studio 16 2019" ../ or cmake -G "MinGW Makefiles" ../
5) cmake --build . --target GSVirtualMachine- Go to the directory with the cloned repository.
- Create a directory for storing assembly files.
- Go to the previously created directory.
- Generating assembly files via CMake.
You can choose either configuration via MinGW or via MSVC.
Support for other compilers is not guaranteed at this time. - Building an executable file via target "GSVirtualMachine"
1) cd {pathToDir}/GSVirtualMachine
2) cd build
3) cmake --install .- Go to the directory with the cloned repository.
- Go to the build directory.
- Install binaries to {pathToDir}/GSVirtualMachine/bin.
Run without additional flags
GSVirtualMachine.exe --file {pathToInputFile}.gsvmRun with testing of each executing step
GSVirtualMachine.exe --file {pathToInputFile}.gsvm --testRun with profiling of each executing step.
GSVirtualMachine.exe --file {pathToInputFile}.gsvm --profiling