stage0 更改名称spl_ir -> spl_mcode spl_cli提供debug模式 提供临时语言规范

This commit is contained in:
zzy
2026-07-29 12:05:18 +08:00
parent 89d4bae8db
commit a77eade06f
10 changed files with 1224 additions and 476 deletions

View File

@@ -10,7 +10,7 @@
#include "spl_syscall.h"
#include "include/core_map.h"
#include "include/core_vec.h"
#include "spl_ir.h"
#include "spl_mcode.h"
#include "spl_vm.h"
#include <stdio.h>
@@ -128,7 +128,7 @@ static spl_val_t vm_read_file(int nargs, spl_val_t *args) {
const char *path = (const char *)(uintptr_t)args[0];
if (path == nullptr) {
fprintf(stderr, "filepath can't be null");
return 1;
return 0;
}
FILE *f = fopen(path, "rb");
if (!f) {