sicp compiler notes:有关SICP编译器的一些说明和演示 源码
在SICP上进行试用-> WASM编译 演示:SICP如何将机器代码注册为WASM 为阶乘翻译LISP代码 (define (factorial n) (define (iter product counter) (if (> counter n) product (iter (* counter product) (+ counter 1)))) (iter 1 1)) SICP手动生成以下寄存器机器代码: factorial (assign product 1) (assign counter 1) iter (test (op >) (reg counter) (reg n)) (branch (label fact-done)) (assig
用户评论