Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions virtual_machine/disasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
#include "bytecode.h"
#include <stdio.h>

/* Disassemble all public symbols in bc, writing output to f.
Returns 0 on success, -1 on error. */
int disasm(const bytecode *bc, FILE *f);
void dump_bytecode(FILE *f, const bytecode *bc);

/* Disassemble a single function starting at code_offset within bc->code,
writing output to f. name may be NULL. */
int disasm_func(const bytecode *bc, size_t code_offset, const char *name,
uint8_t flag, FILE *f);

#endif /* DISASM_H */
#endif // DISASM_H
1 change: 1 addition & 0 deletions virtual_machine/dune
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
ops.c
memory.c
opcodes.c
disasm.c
(glob_files *.h)
../runtime/Makefile
../runtime/gc.c
Expand Down
Loading