[<<][staapl][>>][..]
Sun May 3 14:07:42 CEST 2009

compiler

So, with modules working, shouldn't compilation become trivial?  Yes
for module -> binary, but there's also the .dict file which requires
reflection.

I wonder what 'init-namespace did..

Let's make compilation only work for modules.  This way there are
never any missing identifiers.

(require "app/452-40.fm"
         (planet zwizwa/staapl/code)        ;; code->binary
         (planet zwizwa/staapl/port/ihex))  ;; write-ihex
(write-ihex (code->binary))

This produces almost correct code:

diff 452-40.hex /tmp/test.hex
2c2,3
< :0E00000000260F0E000181000FC00FE00F4020
---
> :10000000000026000F000E0000000100810000002B
> :0C0010000F00C0000F00E0000F004000D7

The difference is in ',' performing word compile instead of byte
compile.

fixed.



[Reply][About]
[<<][staapl][>>][..]