diff options
| author | 2026-10-14 08:45:35 +0330 | |
|---|---|---|
| committer | 2026-10-14 08:45:35 +0330 | |
| commit | d981870038c3ffa531f5c1d07e4aec855e061491 (patch) | |
| tree | 9b88cc64668a54a7b240bd180a12c5f2779bd081 /src/js/layout.d.ts | |
| parent | feat: grow memory limits, add icon/actor libraries, overhaul LSP diagnostics (diff) | |
build: generate everything into build/, keep src/ free of generated files
src/ carried 8.4 MB of build output: the genome header, the javascript vm and
its layout, and the language-server image, plus a second copy of the extension
server under editors/vscode/server/. none of it is source.
- move the genome from src/core/genome.h to build/core/genome.h and compile with
-Ibuild/core; `make all` bootstraps one when it is missing
- write genome.json, layout.ts, layout.js and lsp.json to build/js/
- compile tinyvm.ts to build/js/, typed by a tracked src/js/layout.d.ts so the
vm needs no generated file beside its source
- build the wasm server into build/editors/vscode/server/ and stage the whole
server into editors/vscode/server/ only while mkvsix.sh packages it
- redirect the test suite, image_run.js, tinyvm.sh, tinyvm.bat, test_win.ps1 and
the baremetal build at the new paths, and add make lspimage and make vsix
- stop tracking every generated file
also fix a build blocker: lookup_raw compared skind against K_VAR, which was
never declared, so `make genome` could not run at all. the guard is about
emitted program globals, which are K_GVAR and K_GARR.
tests/test.sh -q reports 159 passed and 21 failed both before and after this
change; every failure is pre-existing and comes from the checked-in genome being
stale relative to src/, plus the bootstrap above.
Diffstat (limited to 'src/js/layout.d.ts')
| -rw-r--r-- | src/js/layout.d.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/js/layout.d.ts b/src/js/layout.d.ts new file mode 100644 index 0000000..1e8c004 --- /dev/null +++ b/src/js/layout.d.ts @@ -0,0 +1,17 @@ +// types for the map the javascript vm reads at runtime. the values are +// generated by src/js/extract_genome.js into build/js/layout.js, which sits +// beside the compiled vm; this declaration is here so tinyvm.ts typechecks +// without a generated file in the tree. +export declare const MAP: { + readonly MW: number; + readonly PW: number; + readonly ZFP: number; + readonly GORG: number; + readonly DS0: number; + readonly DSLIM: number; + readonly RS0: number; + readonly RSLIM: number; + readonly SYSGATE: number; + readonly HEAP_LO: number; + readonly HEAP_HI: number; +};
\ No newline at end of file |
