build fixes

This commit is contained in:
ProgramSnail 2024-11-03 12:52:25 +03:00
parent e17f1f70ed
commit da050c082c
4 changed files with 7 additions and 8 deletions

4
byterun/.gitignore vendored
View file

@ -1,4 +1,5 @@
/byterun.exe byterun.exe
byterun
build/ build/
.xmake/ .xmake/
@ -8,4 +9,3 @@ compile_commands.json
.cache/ .cache/
*.a *.a
*.o *.o
byterun

View file

@ -1,6 +1,7 @@
(rule (rule
(target byterun.exe) (target byterun.exe)
(deps (deps
(:include (source_tree include))
(:main src/cli.c src/interpreter.c) (:main src/cli.c src/interpreter.c)
(:parser src/parser.c) (:parser src/parser.c)
(:utils src/utils.c src/types.c src/stack.c) (:utils src/utils.c src/types.c src/stack.c)
@ -8,4 +9,4 @@
(mode (mode
(promote (until-clean))) (promote (until-clean)))
(action (action
(run gcc -g -Iinclude/ %{main} %{runtime} -o %{target}))) (run gcc -Iinclude/ -g %{main} %{parser} %{utils} %{runtime} -o %{target})))

View file

@ -14,8 +14,6 @@
#include "../../runtime/runtime_common.h" #include "../../runtime/runtime_common.h"
#define WORD_SIZE (CHAR_BIT * sizeof(int))
// --- // ---
void Lassert(void *f, char *s, ...); void Lassert(void *f, char *s, ...);

View file

@ -92,12 +92,12 @@ void run(bytefile *bf) {
Bsexp((aint*)s.sp, ip_read_int(&s.ip)); // TODO: check order Bsexp((aint*)s.sp, ip_read_int(&s.ip)); // TODO: check order
break; break;
case 3: // STI case 3: // STI - write by ref (?)
// TODO // TODO
break; break;
case 4: // STA case 4: // STA - write to array elem
// TODO // Bsta // TODO
break; break;
case 5: // JMP 0x%.8x case 5: // JMP 0x%.8x