Fixed a bug related to this option.
[picobit.git] / tests / test-rom.scm
blob70403fa20864afbb900389fa4e3416adb1c994bb
1 ;; let's see if this end up in rom, if so, vectors whose contents are known at compile time are likely to be optimized to rom for free
2 (define x 3)
3 (define y '(1 2 3)) ;; ok, if quote is used, goes to rom, if not, goes to ram, the compiler doesn't check to see if everything is known at compile-time, I probably should add this optimization
4 (set-car! y 9)
5 (display y)