mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
895 B
895 B
Add a primitive
- Add function/definitions to
runtime.h
andruntime.c
- Rebuild and install runtime library.
- Add to
prim?
section intransforms.sld
. Some functions may need to added to the next section in the file, so they are not constant-folded (IE, evaluated at compile time). - Add above the
c-compile-primitive
section incgen.sld
. Some functions may need to be added in multiple places to indicate they take additional arguments, call their continuation, etc.
TODO: need to develop this section better to come up with a workable/optimal approach to building things:
-
Compile: cyclone scheme/cyclone/cgen.sld cyclone scheme/cyclone/transforms.sld
-
Copy modified files to cyclone-bootstrap, including runtime,
.sld
, and compiled.c
files. -
Run
make clean ; ./install
from bootstrap repo -
Add primitives to the list in eval.sld. Rebuild one more time.