integrate boot.scm and compile.scm

This commit is contained in:
Yuichi Nishiwaki
2017-04-04 19:00:37 +09:00
parent 463b73f11f
commit c1a7f6d2d8
7 changed files with 789 additions and 778 deletions
+5 -6
View File
@@ -51,13 +51,11 @@
`("#include \"picrin.h\"\n"
"#include \"picrin/extra.h\"\n"
"\n"
"static const char boot_rom[][80] = {\n"
,(generate-rom)
"};\n"
"\n"
"#if PIC_USE_EVAL\n"
"static const char boot_compile_rom[][80] = {\n"
,(generate-rom)
"};\n"
"#endif\n"
"\n"
"#if PIC_USE_LIBRARY\n"
"static const char boot_library_rom[][80] = {\n"
@@ -66,10 +64,11 @@
"#endif\n"
"\n"
"void\n"
"pic_boot(pic_state *pic)\n"
"pic_boot(pic_state *PIC_UNUSED(pic))\n"
"{\n"
"#if PIC_USE_EVAL\n"
" pic_load_native(pic, &boot_compile_rom[0][0]);\n"
" pic_load_native(pic, &boot_rom[0][0]);\n"
"#endif\n"
"#if PIC_USE_LIBRARY\n"
" pic_load_native(pic, &boot_library_rom[0][0]);\n"
"#endif\n"