mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Updated instructions for adding primitives
This commit is contained in:
parent
a539027b0f
commit
efd00b712f
1 changed files with 6 additions and 3 deletions
|
@ -3,12 +3,15 @@
|
|||
WIP set of instructions for doing this. working to refine this down:
|
||||
|
||||
- Add function/definitions to runtime.h and runtime.c
|
||||
- Add to prim? section in transforms.scm. 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 to the c-compile-primitive section in cgen.scm.
|
||||
- install modified .scm files
|
||||
- Rebuild and install runtime library.
|
||||
|
||||
- Add to prim? section in transforms.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 to the c-compile-primitive section in cgen.sld.
|
||||
- install modified .sld files
|
||||
- cyclone scheme/cyclone/cgen.sld
|
||||
- copy modified files to cyclone-bootstrap, including cgen.c
|
||||
- install cyclone-bootstrap
|
||||
- run 'make clean ; make && make bootstrap' from cyclone repo
|
||||
- run 'make clean ; ./install' from bootstrap repo
|
||||
|
||||
- Add primitives to the list in eval.sld
|
||||
|
|
Loading…
Add table
Reference in a new issue