file/compile

path environment


Summary

Compile a Nujel source file into optimized object code

Bytecode

Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.

(    0 ($push/val 'do))
(    2 ($get/val 'read))
(    4 ($get/val 'file/read))
(    6 ($get/val 'path))
(    8 ($apply 1))
(   10 ($apply 1))
(   12 ($cons))
(   13 ($det/val 'source))
(   15 ($drop))
(   16 ($get/val 'compile*))
(   18 ($get/val 'source))
(   20 ($get/val 'environment))
(   22 ($dup))
(   23 ($jt* 16))
(   26 ($drop))
(   27 ($let))
(   28 ($push/nil))
(   29 ($drop))
(   30 ($closure/push))
(   31 ($closure/pop))
(   32 ($dup))
(   33 ($jt* 6))
(   36 ($drop))
(   37 ($push/val #f))
(   39 ($apply 2))
(   41 ($det/val 'object-code))
(   43 ($drop))
(   44 ($get/val 'file/write))
(   46 ($get/val 'object-code))
(   48 ($jf* 12))
(   51 ($get/val 'string/write))
(   53 ($get/val 'object-code))
(   55 ($apply 1))
(   57 ($jmp* 5))
(   60 ($push/val ))
(   62 ($get/val 'cat))
(   64 ($get/val 'path/without-extension))
(   66 ($get/val 'path))
(   68 ($apply 1))
(   70 ($push/val .no))
(   72 ($apply 2))
(   74 ($apply 2))
(   76 ($drop))
(   77 ($get/val 'object-code))
(   79 ($ret))
(   80 ($ret))