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/
.xmake/
@ -8,4 +9,3 @@ compile_commands.json
.cache/
*.a
*.o
byterun

View file

@ -1,6 +1,7 @@
(rule
(target byterun.exe)
(deps
(:include (source_tree include))
(:main src/cli.c src/interpreter.c)
(:parser src/parser.c)
(:utils src/utils.c src/types.c src/stack.c)
@ -8,4 +9,4 @@
(mode
(promote (until-clean)))
(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"
#define WORD_SIZE (CHAR_BIT * sizeof(int))
// ---
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
break;
case 3: // STI
case 3: // STI - write by ref (?)
// TODO
break;
case 4: // STA
// TODO
case 4: // STA - write to array elem
// Bsta // TODO
break;
case 5: // JMP 0x%.8x