From efd00b712f4758c3fc48e0febda10d8132f4c2cf Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 17 Dec 2015 23:56:03 -0500 Subject: [PATCH] Updated instructions for adding primitives --- docs/Developer-How-To.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/Developer-How-To.md b/docs/Developer-How-To.md index a0d34ba1..0fec3f9b 100644 --- a/docs/Developer-How-To.md +++ b/docs/Developer-How-To.md @@ -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