問題5.44 – SICP(計算機プログラムの構造と解釈)その295

問題5.44 compile の振り分け時に定義が上書きされているかを調べる。 (define (compile exp target linkage ct-env) ;; 省略 ((open-code-operator [...]…続きを読む

問題5.43 – SICP(計算機プログラムの構造と解釈)その294

問題5.43 4.1.6節の問題4.16で作った scan-out-defines を compile-lambda-body に組み込む (define (compile-lambda-body exp proc-en [...]…続きを読む

問題5.42 – SICP(計算機プログラムの構造と解釈)その293

問題5.42 (define (compile exp target linkage ct-env) ;; 省略 ((variable? exp) (compile-variable exp target linkage [...]…続きを読む

問題5.41 – SICP(計算機プログラムの構造と解釈)その292

問題5.41 (define (find-variable var ct-env) (define (frame-iter var frames frame-number) (if (null? frames) ‘not [...]…続きを読む

演習2-10 K&R プログラミング言語C

演習2-10 #include <stdio.h> int lower(int c); int main(int argc, char *argv[]) { int c; while((c = getchar [...]…続きを読む

問題5.40 – SICP(計算機プログラムの構造と解釈)その291

問題5.40 (define (compile-lambda-body exp proc-entry ct-env) (let ((formals (lambda-parameters exp))) (append-in [...]…続きを読む

2.10 代入演算子と式, 演習2-9 K&R プログラミング言語C

2.10 代入演算子と式 /* 右端のビットが 1 の場合 b をインクリメントする * x = 141 : 1000 1101 => 141 inc * x >>= 1 : 0100 0110 =&g [...]…続きを読む

問題5.39 – SICP(計算機プログラムの構造と解釈)その290

問題5.39 (define (lexical-address-frame-number lexical-address) (car lexical-address)) (define (lexical-address- [...]…続きを読む

演習2-8 K&R プログラミング言語C

演習2-8 /* * x = 75, n = 3 * 75 => 0100 1011 * 105 => 0110 1001 */ #include <stdio.h> #include <l [...]…続きを読む

問題5.38 – SICP(計算機プログラムの構造と解釈)その289

問題5.38 a. 及び b. (define (compile exp target linkage) ;; 省略 ((memq (car exp) ‘(+ – * / =)) (compile-open-code e [...]…続きを読む
Page 2 of 4312345102030...Last »
↑ページの先頭へ