CrimVm
所属分类:collect
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2021-10-16 19:22:45
上 传 者:
sh-1993
说明: 自定义虚拟机。专为娱乐和学习打造。,
(A custom virtual machine. Made for fun and learning.,)
文件列表:
LICENSE (1066, 2021-10-16)
Makefile (341, 2021-10-16)
docs/ (0, 2021-10-16)
docs/bytecode.md (1456, 2021-10-16)
docs/specs.md (5823, 2021-10-16)
scripts/ (0, 2021-10-16)
scripts/run_many_times.sh (154, 2021-10-16)
scripts/test.sh (91, 2021-10-16)
scripts/update.py (323, 2021-10-16)
src/ (0, 2021-10-16)
src/assembler.c (18067, 2021-10-16)
src/defs.h (1448, 2021-10-16)
src/hashtable.c (3467, 2021-10-16)
src/hashtable.h (1306, 2021-10-16)
src/loader.c (4501, 2021-10-16)
src/main.c (4606, 2021-10-16)
src/preprocessor.c (8966, 2021-10-16)
src/preprocessor.h (1104, 2021-10-16)
src/util.h (1741, 2021-10-16)
src/vm.c (6932, 2021-10-16)
src/vm.h (2758, 2021-10-16)
src/vm_syscalls.c (2290, 2021-10-16)
tests/ (0, 2021-10-16)
tests/inputs/ (0, 2021-10-16)
tests/inputs/basic/ (0, 2021-10-16)
tests/inputs/basic/.section (60, 2021-10-16)
tests/inputs/basic/char1.cas (46, 2021-10-16)
tests/inputs/basic/char2.cas (47, 2021-10-16)
tests/inputs/basic/comments1.cas (95, 2021-10-16)
tests/inputs/basic/comments2.cas (91, 2021-10-16)
tests/inputs/basic/end1.cas (48, 2021-10-16)
tests/inputs/basic/hex1.cas (23, 2021-10-16)
tests/inputs/basic/hex2.cas (382, 2021-10-16)
tests/inputs/basic/hex3.cas (120, 2021-10-16)
tests/inputs/basic/largenums1.cas (23, 2021-10-16)
... ...
# CrimVm
Specs of the VM can be found [here](https://github.com/RuiDGPires/CrimVm/blob/master/docs/specs.md).
Project is UNIX focused for now, maybe that will change later.
## Example
Using [example.cas](https://github.com/RuiDGPires/CrimVm/blob/master/tests/inputs/example/example.cas) as an example:
First, assemble the text file into an object file
>./crimvm -a example.cas -o example.o
Then, run the file
>./crimvm example.o
Output:
>60
**or**
Simply assemble and run (generates no files)
>./crimvm -ar example.cas
近期下载者:
相关文件:
收藏者: