Debian Codegraph @

scheme/makefile.ss

raw
1 #!../src/ikarus -b ikarus.boot --r6rs-script
2 ;;; Ikarus Scheme -- A compiler for R6RS Scheme.
3 ;;; Copyright (C) 2006,2007,2008 Abdulaziz Ghuloum
4 ;;;
5 ;;; This program is free software: you can redistribute it and/or modify
6 ;;; it under the terms of the GNU General Public License version 3 as
7 ;;; published by the Free Software Foundation.
8 ;;;
9 ;;; This program is distributed in the hope that it will be useful, but
10 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ;;; General Public License for more details.
13 ;;;
14 ;;; You should have received a copy of the GNU General Public License
15 ;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17 ;;; vim:syntax=scheme
18 (import (only (ikarus) import))
19 (import (except (ikarus)
20 current-letrec-pass
21 current-core-eval
22 assembler-output optimize-cp optimize-level
23 cp0-size-limit cp0-effort-limit expand/optimize
24 expand/scc-letrec expand
25 optimizer-output tag-analysis-output perform-tag-analysis))
26 (import (ikarus.compiler))
27 (import (except (psyntax system $bootstrap)
28 eval-core
29 current-primitive-locations
30 compile-core-expr-to-port))
31 (import (ikarus.compiler)) ; just for fun
32 (optimize-level 2)
33 (perform-tag-analysis #t)
34 (pretty-width 160)
35 ((pretty-format 'fix) ((pretty-format 'letrec)))
36 (strip-source-info #t)
37
38 (current-letrec-pass 'scc)
39 (define scheme-library-files
40 ;;; Listed in the order in which they're loaded.
41 ;;;
42 ;;; Loading of the boot file may segfault if a library is
43 ;;; loaded before its dependencies are loaded first.
44 ;;;
45 ;;; reason is that the base libraries are not a hierarchy of
46 ;;; dependencies but rather an eco system in which every
47 ;;; part depends on the other.
48 ;;;
49 ;;; For example, the printer may call error if it finds
50 ;;; an error (e.g. "not an output port"), while the error
51 ;;; procedure may call the printer to display the message.
52 ;;; This works fine as long as error does not itself cause
53 ;;; an error (which may lead to the infamous Error: Error:
54 ;;; Error: Error: Error: Error: Error: Error: Error: ...).
55 ;;;
56 '(
57
58 "ikarus.singular-objects.ss"
59 "ikarus.posix.ss"
60 "ikarus.handlers.ss"
61 "ikarus.multiple-values.ss"
62 "ikarus.control.ss"
63 "ikarus.exceptions.ss"
64 "ikarus.collect.ss"
65 "ikarus.apply.ss"
66 "ikarus.predicates.ss"
67 "ikarus.equal.ss"
68 "ikarus.pairs.ss"
69 "ikarus.lists.ss"
70 "ikarus.fixnums.ss"
71 "ikarus.chars.ss"
72 "ikarus.structs.ss"
73 "ikarus.records.procedural.ss"
74 "ikarus.strings.ss"
75 "ikarus.unicode-conversion.ss"
76 "ikarus.date-string.ss"
77 "ikarus.symbols.ss"
78 "ikarus.vectors.ss"
79 "ikarus.unicode.ss"
80 "ikarus.string-to-number.ss"
81 "ikarus.numerics.ss"
82 "ikarus.conditions.ss"
83 "ikarus.guardians.ss"
84 "ikarus.symbol-table.ss"
85 "ikarus.codecs.ss"
86 "ikarus.bytevectors.ss"
87 "ikarus.io.ss"
88 "ikarus.hash-tables.ss"
89 "ikarus.pretty-formats.ss"
90 "ikarus.writer.ss"
91 "ikarus.reader.ss"
92 "ikarus.reader.annotated.ss"
93 "ikarus.code-objects.ss"
94 "ikarus.intel-assembler.ss"
95 "ikarus.fasl.write.ss"
96 "ikarus.fasl.ss"
97 "ikarus.compiler.ss"
98 "psyntax.compat.ss"
99 "psyntax.library-manager.ss"
100 "psyntax.internal.ss"
101 "psyntax.config.ss"
102 "psyntax.builders.ss"
103 "psyntax.expander.ss"
104 "ikarus.apropos.ss"
105 "ikarus.load.ss"
106 "ikarus.pretty-print.ss"
107 "ikarus.cafe.ss"
108 "ikarus.timer.ss"
109 "ikarus.time-and-date.ss"
110 "ikarus.sort.ss"
111 "ikarus.promises.ss"
112 "ikarus.enumerations.ss"
113 "ikarus.command-line.ss"
114 "ikarus.pointers.ss"
115 "ikarus.not-yet-implemented.ss"
116 ;"ikarus.trace.ss"
117 "ikarus.debugger.ss"
118 "ikarus.main.ss"
119 ))
120
121 (define ikarus-system-macros
122 '([define (define)]
123 [define-syntax (define-syntax)]
124 [define-fluid-syntax (define-fluid-syntax)]
125 [module (module)]
126 [library (library)]
127 [begin (begin)]
128 [import (import)]
129 [export (export)]
130 [set! (set!)]
131 [let-syntax (let-syntax)]
132 [letrec-syntax (letrec-syntax)]
133 [stale-when (stale-when)]
134 [foreign-call (core-macro . foreign-call)]
135 [quote (core-macro . quote)]
136 [syntax-case (core-macro . syntax-case)]
137 [syntax (core-macro . syntax)]
138 [lambda (core-macro . lambda)]
139 [case-lambda (core-macro . case-lambda)]
140 [type-descriptor (core-macro . type-descriptor)]
141 [letrec (core-macro . letrec)]
142 [letrec* (core-macro . letrec*)]
143 [if (core-macro . if)]
144 [fluid-let-syntax (core-macro . fluid-let-syntax)]
145 [record-type-descriptor (core-macro . record-type-descriptor)]
146 [record-constructor-descriptor (core-macro . record-constructor-descriptor)]
147 [let-values (macro . let-values)]
148 [let*-values (macro . let*-values)]
149 [define-struct (macro . define-struct)]
150 [case (macro . case)]
151 [syntax-rules (macro . syntax-rules)]
152 [quasiquote (macro . quasiquote)]
153 [quasisyntax (macro . quasisyntax)]
154 [with-syntax (macro . with-syntax)]
155 [identifier-syntax (macro . identifier-syntax)]
156 [parameterize (macro . parameterize)]
157 [when (macro . when)]
158 [unless (macro . unless)]
159 [let (macro . let)]
160 [let* (macro . let*)]
161 [cond (macro . cond)]
162 [do (macro . do)]
163 [and (macro . and)]
164 [or (macro . or)]
165 [time (macro . time)]
166 [delay (macro . delay)]
167 [endianness (macro . endianness)]
168 [assert (macro . assert)]
169 [... (macro . ...)]
170 [=> (macro . =>)]
171 [else (macro . else)]
172 [_ (macro . _)]
173 [unquote (macro . unquote)]
174 [unquote-splicing (macro . unquote-splicing)]
175 [unsyntax (macro . unsyntax)]
176 [unsyntax-splicing (macro . unsyntax-splicing)]
177 [trace-lambda (macro . trace-lambda)]
178 [trace-let (macro . trace-let)]
179 [trace-define (macro . trace-define)]
180 [trace-define-syntax (macro . trace-define-syntax)]
181 [trace-let-syntax (macro . trace-let-syntax)]
182 [trace-letrec-syntax (macro . trace-letrec-syntax)]
183 [guard (macro . guard)]
184 [eol-style (macro . eol-style)]
185 [buffer-mode (macro . buffer-mode)]
186 [file-options (macro . file-options)]
187 [error-handling-mode (macro . error-handling-mode)]
188 [fields (macro . fields)]
189 [mutable (macro . mutable)]
190 [immutable (macro . immutable)]
191 [parent (macro . parent)]
192 [protocol (macro . protocol)]
193 [sealed (macro . sealed)]
194 [opaque (macro . opaque )]
195 [nongenerative (macro . nongenerative)]
196 [parent-rtd (macro . parent-rtd)]
197 [define-record-type (macro . define-record-type)]
198 [define-enumeration (macro . define-enumeration)]
199 [define-condition-type (macro . define-condition-type)]
200 [&condition ($core-rtd . (&condition-rtd &condition-rcd))]
201 [&message ($core-rtd . (&message-rtd &message-rcd))]
202 [&warning ($core-rtd . (&warning-rtd &warning-rcd ))]
203 [&serious ($core-rtd . (&serious-rtd &serious-rcd))]
204 [&error ($core-rtd . (&error-rtd &error-rcd))]
205 [&violation ($core-rtd . (&violation-rtd &violation-rcd ))]
206 [&assertion ($core-rtd . (&assertion-rtd &assertion-rcd ))]
207 [&irritants ($core-rtd . (&irritants-rtd &irritants-rcd))]
208 [&who ($core-rtd . (&who-rtd &who-rcd ))]
209 [&non-continuable ($core-rtd . (&non-continuable-rtd &non-continuable-rcd))]
210 [&implementation-restriction ($core-rtd . (&implementation-restriction-rtd &implementation-restriction-rcd))]
211 [&lexical ($core-rtd . (&lexical-rtd &lexical-rcd ))]
212 [&syntax ($core-rtd . (&syntax-rtd &syntax-rcd ))]
213 [&undefined ($core-rtd . (&undefined-rtd &undefined-rcd))]
214 [&i/o ($core-rtd . (&i/o-rtd &i/o-rcd ))]
215 [&i/o-read ($core-rtd . (&i/o-read-rtd &i/o-read-rcd ))]
216 [&i/o-write ($core-rtd . (&i/o-write-rtd &i/o-write-rcd))]
217 [&i/o-invalid-position ($core-rtd . (&i/o-invalid-position-rtd &i/o-invalid-position-rcd ))]
218 [&i/o-filename ($core-rtd . (&i/o-filename-rtd &i/o-filename-rcd))]
219 [&i/o-file-protection ($core-rtd . (&i/o-file-protection-rtd &i/o-file-protection-rcd))]
220 [&i/o-file-is-read-only ($core-rtd . (&i/o-file-is-read-only-rtd &i/o-file-is-read-only-rcd ))]
221 [&i/o-file-already-exists ($core-rtd . (&i/o-file-already-exists-rtd &i/o-file-already-exists-rcd))]
222 [&i/o-file-does-not-exist ($core-rtd . (&i/o-file-does-not-exist-rtd &i/o-file-does-not-exist-rcd))]
223 [&i/o-port ($core-rtd . (&i/o-port-rtd &i/o-port-rcd))]
224 [&i/o-decoding ($core-rtd . (&i/o-decoding-rtd &i/o-decoding-rcd))]
225 [&i/o-encoding ($core-rtd . (&i/o-encoding-rtd &i/o-encoding-rcd))]
226 [&no-infinities ($core-rtd . (&no-infinities-rtd &no-infinities-rcd ))]
227 [&no-nans ($core-rtd . (&no-nans-rtd &no-nans-rcd))]
228 [&interrupted ($core-rtd . (&interrupted-rtd &interrupted-rcd))]
229 [&source ($core-rtd . (&source-rtd &source-rcd))]
230 ))
231
232 (define library-legend
233 ;; abbr. name visible? required?
234 '([i (ikarus) #t #t]
235 [cm (chez modules) #t #t]
236 [symbols (ikarus symbols) #t #t]
237 [parameters (ikarus parameters) #t #t]
238 [r (rnrs) #t #t]
239 [r5 (rnrs r5rs) #t #t]
240 [ct (rnrs control) #t #t]
241 [ev (rnrs eval) #t #t]
242 [mp (rnrs mutable-pairs) #t #t]
243 [ms (rnrs mutable-strings) #t #t]
244 [pr (rnrs programs) #t #t]
245 [sc (rnrs syntax-case) #t #t]
246 [fi (rnrs files) #t #t]
247 [sr (rnrs sorting) #t #t]
248 [ba (rnrs base) #t #t]
249 [ls (rnrs lists) #t #t]
250 [is (rnrs io simple) #t #t]
251 [bv (rnrs bytevectors) #t #t]
252 [uc (rnrs unicode) #t #t]
253 [ex (rnrs exceptions) #t #t]
254 [bw (rnrs arithmetic bitwise) #t #t]
255 [fx (rnrs arithmetic fixnums) #t #t]
256 [fl (rnrs arithmetic flonums) #t #t]
257 [ht (rnrs hashtables) #t #t]
258 [ip (rnrs io ports) #t #t]
259 [en (rnrs enums) #t #t]
260 [co (rnrs conditions) #t #t]
261 [ri (rnrs records inspection) #t #t]
262 [rp (rnrs records procedural) #t #t]
263 [rs (rnrs records syntactic) #t #t]
264 [$pairs (ikarus system $pairs) #f #t]
265 [$lists (ikarus system $lists) #f #t]
266 [$chars (ikarus system $chars) #f #t]
267 [$strings (ikarus system $strings) #f #t]
268 [$vectors (ikarus system $vectors) #f #t]
269 [$flonums (ikarus system $flonums) #f #t]
270 [$bignums (ikarus system $bignums) #f #t]
271 [$bytes (ikarus system $bytevectors) #f #t]
272 [$transc (ikarus system $transcoders) #f #t]
273 [$fx (ikarus system $fx) #f #t]
274 [$rat (ikarus system $ratnums) #f #t]
275 [$comp (ikarus system $compnums) #f #t]
276 [$symbols (ikarus system $symbols) #f #t]
277 [$structs (ikarus system $structs) #f #t]
278 ;[$ports (ikarus system $ports) #f #t]
279 [$codes (ikarus system $codes) #f #t]
280 [$tcbuckets (ikarus system $tcbuckets) #f #t]
281 [$arg-list (ikarus system $arg-list) #f #t]
282 [$stack (ikarus system $stack) #f #t]
283 [$interrupts (ikarus system $interrupts) #f #t]
284 [$io (ikarus system $io) #f #t]
285 [$for (ikarus system $foreign) #f #t]
286 [$all (psyntax system $all) #f #t]
287 [$boot (psyntax system $bootstrap) #f #t]
288 [ne (psyntax null-environment-5) #f #f]
289 [se (psyntax scheme-report-environment-5) #f #f]
290 ))
291
292 (define identifier->library-map
293 '(
294 [import i]
295 [export i]
296 [foreign-call i]
297 [type-descriptor i]
298 [parameterize i parameters]
299 [define-struct i]
300 [stale-when i]
301 [time i]
302 [trace-lambda i]
303 [trace-let i]
304 [trace-define i]
305 [trace-define-syntax i]
306 [trace-let-syntax i]
307 [trace-letrec-syntax i]
308 [make-list i]
309 [last-pair i]
310 [bwp-object? i]
311 [weak-cons i]
312 [weak-pair? i]
313 [uuid i]
314 [date-string i]
315 [andmap i]
316 [ormap i]
317 [fx< i]
318 [fx<= i]
319 [fx> i]
320 [fx>= i]
321 [fx= i]
322 [fxadd1 i]
323 [fxsub1 i]
324 [fxquotient i]
325 [fxremainder i]
326 [fxmodulo i]
327 [fxsll i]
328 [fxsra i]
329 [sra i]
330 [sll i]
331 [fxlogand i]
332 [fxlogxor i]
333 [fxlogor i]
334 [fxlognot i]
335 [fixnum->string i]
336 [string->flonum i]
337 [add1 i]
338 [sub1 i]
339 [bignum? i]
340 [ratnum? i]
341 [compnum? i]
342 [cflonum? i]
343 [flonum-parts i]
344 [flonum-bytes i]
345 [quotient+remainder i]
346 [flonum->string i]
347 [random i]
348 [gensym? i symbols]
349 [getprop i symbols]
350 [putprop i symbols]
351 [remprop i symbols]
352 [property-list i symbols]
353 [gensym->unique-string i symbols]
354 [symbol-bound? i symbols]
355 [top-level-value i symbols]
356 [reset-symbol-proc! i symbols]
357 [make-guardian i]
358 [port-mode i]
359 [set-port-mode! i]
360 [with-input-from-string i]
361 [open-output-string i]
362 [open-output-bytevector i]
363 [get-output-string i]
364 [get-output-bytevector i]
365 [with-output-to-string i]
366 ; [with-output-to-bytevector i]
367 [console-input-port i]
368 [console-error-port i]
369 [console-output-port i]
370 [reset-input-port! i]
371 [reset-output-port! i]
372 [read-token i]
373 [printf i]
374 [fprintf i]
375 [format i]
376 [comment-handler i]
377 [print-gensym i symbols]
378 [print-graph i]
379 [print-unicode i]
380 [print-radix i]
381 [unicode-printable-char? i]
382 [gensym-count i symbols]
383 [gensym-prefix i symbols]
384 [make-parameter i parameters]
385 [call/cf i]
386 [print-error i]
387 [strerror i]
388 [interrupt-handler i]
389 [engine-handler i]
390 [assembler-output i]
391 [optimizer-output i]
392 [new-cafe i]
393 [waiter-prompt-string i]
394 [expand i]
395 [core-expand i]
396 [expand/optimize i]
397 [expand/scc-letrec i]
398 [environment? i]
399 [environment-symbols i]
400 [time-it i]
401 [verbose-timer i]
402 [current-time i]
403 [time? i]
404 [time-second i]
405 [time-gmt-offset i]
406 [time-nanosecond i]
407 [command-line-arguments i]
408 [set-rtd-printer! i]
409 [struct? i]
410 [make-struct-type i]
411 [struct-type-name i]
412 [struct-type-symbol i]
413 [struct-type-field-names i]
414 [struct-field-accessor i]
415 [struct-length i]
416 [struct-ref i]
417 [struct-set! i]
418 [struct-printer i]
419 [struct-name i]
420 [struct-type-descriptor i]
421 [code? i]
422 [immediate? i]
423 [pointer-value i]
424 [system i]
425 [process i]
426 [process* i]
427 [process-nonblocking i]
428 [waitpid i]
429 [wstatus-pid i]
430 [wstatus-exit-status i]
431 [wstatus-received-signal i]
432 [kill i]
433 [getpid i]
434 [getppid i]
435 [sigprocmask i]
436 [sigpending i]
437 [apropos i]
438 [installed-libraries i]
439 [uninstall-library i]
440 [library-path i]
441 [library-extensions i]
442 [current-primitive-locations $boot]
443 [boot-library-expand $boot]
444 [current-library-collection $boot]
445 [library-name $boot]
446 [find-library-by-name $boot]
447 [$car $pairs]
448 [$cdr $pairs]
449 [$set-car! $pairs]
450 [$set-cdr! $pairs]
451 [$memq $lists]
452 [$memv $lists]
453 [$char? $chars]
454 [$char= $chars]
455 [$char< $chars]
456 [$char> $chars]
457 [$char<= $chars]
458 [$char>= $chars]
459 [$char->fixnum $chars]
460 [$fixnum->char $chars]
461 [$make-string $strings]
462 [$string-ref $strings]
463 [$string-set! $strings]
464 [$string-length $strings]
465 [$make-bytevector $bytes]
466 [$bytevector-length $bytes]
467 [$bytevector-s8-ref $bytes]
468 [$bytevector-u8-ref $bytes]
469 [$bytevector-set! $bytes]
470 [$bytevector-ieee-double-native-ref $bytes]
471 [$bytevector-ieee-double-native-set! $bytes]
472 [$bytevector-ieee-double-nonnative-ref $bytes]
473 [$bytevector-ieee-double-nonnative-set! $bytes]
474 [$bytevector-ieee-single-native-ref $bytes]
475 [$bytevector-ieee-single-native-set! $bytes]
476 [$bytevector-ieee-single-nonnative-ref $bytes]
477 [$bytevector-ieee-single-nonnative-set! $bytes]
478 [$flonum-u8-ref $flonums]
479 [$make-flonum $flonums]
480 [$flonum-set! $flonums]
481 [$flonum-signed-biased-exponent $flonums]
482 [$flonum-rational? $flonums]
483 [$flonum-integer? $flonums]
484 [$fl+ $flonums]
485 [$fl- $flonums]
486 [$fl* $flonums]
487 [$fl/ $flonums]
488 [$fl= $flonums]
489 [$fl< $flonums]
490 [$fl<= $flonums]
491 [$fl> $flonums]
492 [$fl>= $flonums]
493 ;[$flround $flonums]
494 [$fixnum->flonum $flonums]
495 [$flonum-sbe $flonums]
496 [$make-bignum $bignums]
497 [$bignum-positive? $bignums]
498 [$bignum-size $bignums]
499 [$bignum-byte-ref $bignums]
500 [$bignum-byte-set! $bignums]
501 [$make-ratnum $rat]
502 [$ratnum-n $rat]
503 [$ratnum-d $rat]
504 [$make-compnum $comp]
505 [$compnum-real $comp]
506 [$compnum-imag $comp]
507 [$make-cflonum $comp]
508 [$cflonum-real $comp]
509 [$cflonum-imag $comp]
510 [$make-vector $vectors]
511 [$vector-length $vectors]
512 [$vector-ref $vectors]
513 [$vector-set! $vectors]
514 [$fxzero? $fx]
515 [$fxadd1 $fx]
516 [$fxsub1 $fx]
517 [$fx>= $fx]
518 [$fx<= $fx]
519 [$fx> $fx]
520 [$fx< $fx]
521 [$fx= $fx]
522 [$fxsll $fx]
523 [$fxsra $fx]
524 [$fxquotient $fx]
525 [$fxmodulo $fx]
526 [$int-quotient $fx]
527 [$int-remainder $fx]
528 [$fxlogxor $fx]
529 [$fxlogor $fx]
530 [$fxlognot $fx]
531 [$fxlogand $fx]
532 [$fx+ $fx]
533 [$fx* $fx]
534 [$fx- $fx]
535 [$fxinthash $fx]
536 [$make-symbol $symbols]
537 [$symbol-unique-string $symbols]
538 [$symbol-value $symbols]
539 [$symbol-string $symbols]
540 [$symbol-plist $symbols]
541 [$set-symbol-value! $symbols]
542 [$set-symbol-proc! $symbols]
543 [$set-symbol-string! $symbols]
544 [$set-symbol-unique-string! $symbols]
545 [$set-symbol-plist! $symbols]
546 [$unintern-gensym $symbols]
547 [$symbol-table-size $symbols]
548 [$init-symbol-value! ]
549 [$unbound-object? $symbols]
550 ;;;
551 [base-rtd $structs]
552 [$struct-set! $structs]
553 [$struct-ref $structs]
554 [$struct-rtd $structs]
555 [$struct $structs]
556 [$make-struct $structs]
557 [$struct? $structs]
558 [$struct/rtd? $structs]
559 ;;;
560 [$closure-code $codes]
561 [$code->closure $codes]
562 [$code-reloc-vector $codes]
563 [$code-freevars $codes]
564 [$code-size $codes]
565 [$code-annotation $codes]
566 [$code-ref $codes]
567 [$code-set! $codes]
568 [$set-code-annotation! $codes]
569 [procedure-annotation i]
570 [$make-annotated-procedure $codes]
571 [$annotated-procedure-annotation $codes]
572 [$make-tcbucket $tcbuckets]
573 [$tcbucket-key $tcbuckets]
574 [$tcbucket-val $tcbuckets]
575 [$tcbucket-next $tcbuckets]
576 [$set-tcbucket-val! $tcbuckets]
577 [$set-tcbucket-next! $tcbuckets]
578 [$set-tcbucket-tconc! $tcbuckets]
579 [$arg-list $arg-list]
580 [$collect-key $arg-list]
581 [$$apply $stack]
582 [$fp-at-base $stack]
583 [$primitive-call/cc $stack]
584 [$frame->continuation $stack]
585 [$current-frame $stack]
586 [$seal-frame-and-call $stack]
587 [$make-call-with-values-procedure $stack]
588 [$make-values-procedure $stack]
589 [$interrupted? $interrupts]
590 [$unset-interrupted! $interrupts]
591 [$swap-engine-counter! $interrupts]
592 [interrupted-condition? i]
593 [make-interrupted-condition i]
594 [interrupted-signal i]
595
596 [source-position-condition? i]
597 [make-source-position-condition i]
598 [source-position-file-name i]
599 [source-position-character i]
600
601 [$apply-nonprocedure-error-handler ]
602 [$incorrect-args-error-handler ]
603 [$multiple-values-error ]
604 [$debug ]
605 [$underflow-misaligned-error ]
606 [top-level-value-error ]
607 [car-error ]
608 [cdr-error ]
609 [fxadd1-error ]
610 [fxsub1-error ]
611 [cadr-error ]
612 [fx+-type-error ]
613 [fx+-types-error ]
614 [fx+-overflow-error ]
615 [$do-event ]
616 [do-overflow ]
617 [do-overflow-words ]
618 [do-vararg-overflow ]
619 [collect i]
620 [collect-key i]
621 [post-gc-hooks i]
622 [do-stack-overflow ]
623 [make-promise ]
624 [make-traced-procedure i]
625 [make-traced-macro i]
626 [error@fx+ ]
627 [error@fxarithmetic-shift-left ]
628 [error@fxarithmetic-shift-right ]
629 [error@fx* ]
630 [error@fx- ]
631 [error@add1 ]
632 [error@sub1 ]
633 [error@fxadd1 ]
634 [error@fxsub1 ]
635 [fasl-write i]
636 [fasl-read i]
637 [fasl-directory i]
638 [lambda i r ba se ne]
639 [and i r ba se ne]
640 [begin i r ba se ne]
641 [case i r ba se ne]
642 [cond i r ba se ne]
643 [define i r ba se ne]
644 [define-syntax i r ba se ne]
645 [define-fluid-syntax i]
646 [identifier-syntax i r ba]
647 [if i r ba se ne]
648 [let i r ba se ne]
649 [let* i r ba se ne]
650 [let*-values i r ba]
651 [let-syntax i r ba se ne]
652 [let-values i r ba]
653 [fluid-let-syntax i]
654 [letrec i r ba se ne]
655 [letrec* i r ba]
656 [letrec-syntax i r ba se ne]
657 [or i r ba se ne]
658 [quasiquote i r ba se ne]
659 [quote i r ba se ne]
660 [set! i r ba se ne]
661 [syntax-rules i r ba se ne]
662 [unquote i r ba se ne]
663 [unquote-splicing i r ba se ne]
664 [< i r ba se]
665 [<= i r ba se]
666 [= i r ba se]
667 [> i r ba se]
668 [>= i r ba se]
669 [+ i r ba se]
670 [- i r ba se]
671 [* i r ba se]
672 [/ i r ba se]
673 [abs i r ba se]
674 [asin i r ba se]
675 [acos i r ba se]
676 [atan i r ba se]
677 [sinh i]
678 [cosh i]
679 [tanh i]
680 [asinh i]
681 [acosh i]
682 [atanh i]
683 [angle i r ba se]
684 [append i r ba se]
685 [apply i r ba se]
686 [assert i r ba]
687 [assertion-error ]
688 [assertion-violation i r ba]
689 [boolean=? i r ba]
690 [boolean? i r ba se]
691 [car i r ba se]
692 [cdr i r ba se]
693 [caar i r ba se]
694 [cadr i r ba se]
695 [cdar i r ba se]
696 [cddr i r ba se]
697 [caaar i r ba se]
698 [caadr i r ba se]
699 [cadar i r ba se]
700 [caddr i r ba se]
701 [cdaar i r ba se]
702 [cdadr i r ba se]
703 [cddar i r ba se]
704 [cdddr i r ba se]
705 [caaaar i r ba se]
706 [caaadr i r ba se]
707 [caadar i r ba se]
708 [caaddr i r ba se]
709 [cadaar i r ba se]
710 [cadadr i r ba se]
711 [caddar i r ba se]
712 [cadddr i r ba se]
713 [cdaaar i r ba se]
714 [cdaadr i r ba se]
715 [cdadar i r ba se]
716 [cdaddr i r ba se]
717 [cddaar i r ba se]
718 [cddadr i r ba se]
719 [cdddar i r ba se]
720 [cddddr i r ba se]
721 [call-with-current-continuation i r ba se]
722 [call/cc i r ba]
723 [call-with-values i r ba se]
724 [ceiling i r ba se]
725 [char->integer i r ba se]
726 [char<=? i r ba se]
727 [char<? i r ba se]
728 [char=? i r ba se]
729 [char>=? i r ba se]
730 [char>? i r ba se]
731 [char? i r ba se]
732 [complex? i r ba se]
733 [cons i r ba se]
734 [cos i r ba se]
735 [denominator i r ba se]
736 [div i r ba]
737 [mod i r ba]
738 [div-and-mod i r ba]
739 [div0 i r ba]
740 [mod0 i r ba]
741 [div0-and-mod0 i r ba]
742 [dynamic-wind i r ba se]
743 [eq? i r ba se]
744 [equal? i r ba se]
745 [eqv? i r ba se]
746 [error i r ba]
747 [warning i]
748 [die i]
749 [even? i r ba se]
750 [exact i r ba]
751 [exact-integer-sqrt i r ba]
752 [exact? i r ba se]
753 [exp i r ba se]
754 [expt i r ba se]
755 [finite? i r ba]
756 [floor i r ba se]
757 [for-each i r ba se]
758 [gcd i r ba se]
759 [imag-part i r ba se]
760 [inexact i r ba]
761 [inexact? i r ba se]
762 [infinite? i r ba]
763 [integer->char i r ba se]
764 [integer-valued? i r ba]
765 [integer? i r ba se]
766 [lcm i r ba se]
767 [length i r ba se]
768 [list i r ba se]
769 [list->string i r ba se]
770 [list->vector i r ba se]
771 [list-ref i r ba se]
772 [list-tail i r ba se]
773 [list? i r ba se]
774 [log i r ba se]
775 [magnitude i r ba se]
776 [make-polar i r ba se]
777 [make-rectangular i r ba se]
778 [$make-rectangular $comp]
779 [make-string i r ba se]
780 [make-vector i r ba se]
781 [map i r ba se]
782 [max i r ba se]
783 [min i r ba se]
784 [nan? i r ba]
785 [negative? i r ba se]
786 [not i r ba se]
787 [null? i r ba se]
788 [number->string i r ba se]
789 [number? i r ba se]
790 [numerator i r ba se]
791 [odd? i r ba se]
792 [pair? i r ba se]
793 [positive? i r ba se]
794 [procedure? i r ba se]
795 [rational-valued? i r ba]
796 [rational? i r ba se]
797 [rationalize i r ba se]
798 [real-part i r ba se]
799 [real-valued? i r ba]
800 [real? i r ba se]
801 [reverse i r ba se]
802 [round i r ba se]
803 [sin i r ba se]
804 [sqrt i r ba se]
805 [string i r ba se]
806 [string->list i r ba se]
807 [string->number i r ba se]
808 [string->symbol i symbols r ba se]
809 [string-append i r ba se]
810 [string-copy i r ba se]
811 [string-for-each i r ba]
812 [string-length i r ba se]
813 [string-ref i r ba se]
814 [string<=? i r ba se]
815 [string<? i r ba se]
816 [string=? i r ba se]
817 [string>=? i r ba se]
818 [string>? i r ba se]
819 [string? i r ba se]
820 [substring i r ba se]
821 [symbol->string i symbols r ba se]
822 [symbol=? i symbols r ba]
823 [symbol? i symbols r ba se]
824 [tan i r ba se]
825 [truncate i r ba se]
826 [values i r ba se]
827 [vector i r ba se]
828 [vector->list i r ba se]
829 [vector-fill! i r ba se]
830 [vector-for-each i r ba]
831 [vector-length i r ba se]
832 [vector-map i r ba]
833 [vector-ref i r ba se]
834 [vector-set! i r ba se]
835 [vector? i r ba se]
836 [zero? i r ba se]
837 [... i ne r ba sc se]
838 [=> i ne r ba ex se]
839 [_ i ne r ba sc]
840 [else i ne r ba ex se]
841 [bitwise-arithmetic-shift i r bw]
842 [bitwise-arithmetic-shift-left i r bw]
843 [bitwise-arithmetic-shift-right i r bw]
844 [bitwise-not i r bw]
845 [bitwise-and i r bw]
846 [bitwise-ior i r bw]
847 [bitwise-xor i r bw]
848 [bitwise-bit-count i r bw]
849 [bitwise-bit-field i r bw]
850 [bitwise-bit-set? i r bw]
851 [bitwise-copy-bit i r bw]
852 [bitwise-copy-bit-field i r bw]
853 [bitwise-first-bit-set i r bw]
854 [bitwise-if i r bw]
855 [bitwise-length i r bw]
856 [bitwise-reverse-bit-field i r bw]
857 [bitwise-rotate-bit-field i r bw]
858 [fixnum? i r fx]
859 [fixnum-width i r fx]
860 [least-fixnum i r fx]
861 [greatest-fixnum i r fx]
862 [fx* i r fx]
863 [fx*/carry i r fx]
864 [fx+ i r fx]
865 [fx+/carry i r fx]
866 [fx- i r fx]
867 [fx-/carry i r fx]
868 [fx<=? i r fx]
869 [fx<? i r fx]
870 [fx=? i r fx]
871 [fx>=? i r fx]
872 [fx>? i r fx]
873 [fxand i r fx]
874 [fxarithmetic-shift i r fx]
875 [fxarithmetic-shift-left i r fx]
876 [fxarithmetic-shift-right i r fx]
877 [fxbit-count i r fx]
878 [fxbit-field i r fx]
879 [fxbit-set? i r fx]
880 [fxcopy-bit i r fx]
881 [fxcopy-bit-field i r fx]
882 [fxdiv i r fx]
883 [fxdiv-and-mod i r fx]
884 [fxdiv0 i r fx]
885 [fxdiv0-and-mod0 i r fx]
886 [fxeven? i r fx]
887 [fxfirst-bit-set i r fx]
888 [fxif i r fx]
889 [fxior i r fx]
890 [fxlength i r fx]
891 [fxmax i r fx]
892 [fxmin i r fx]
893 [fxmod i r fx]
894 [fxmod0 i r fx]
895 [fxnegative? i r fx]
896 [fxnot i r fx]
897 [fxodd? i r fx]
898 [fxpositive? i r fx]
899 [fxreverse-bit-field i r fx]
900 [fxrotate-bit-field i r fx]
901 [fxxor i r fx]
902 [fxzero? i r fx]
903 [fixnum->flonum i r fl]
904 [fl* i r fl]
905 [fl+ i r fl]
906 [fl- i r fl]
907 [fl/ i r fl]
908 [fl<=? i r fl]
909 [fl<? i r fl]
910 [fl=? i r fl]
911 [fl>=? i r fl]
912 [fl>? i r fl]
913 [flabs i r fl]
914 [flacos i r fl]
915 [flasin i r fl]
916 [flatan i r fl]
917 [flceiling i r fl]
918 [flcos i r fl]
919 [fldenominator i r fl]
920 [fldiv i r fl]
921 [fldiv-and-mod i r fl]
922 [fldiv0 i r fl]
923 [fldiv0-and-mod0 i r fl]
924 [fleven? i r fl]
925 [flexp i r fl]
926 [flexpt i r fl]
927 [flfinite? i r fl]
928 [flfloor i r fl]
929 [flinfinite? i r fl]
930 [flinteger? i r fl]
931 [fllog i r fl]
932 [flmax i r fl]
933 [flmin i r fl]
934 [flmod i r fl]
935 [flmod0 i r fl]
936 [flnan? i r fl]
937 [flnegative? i r fl]
938 [flnumerator i r fl]
939 [flodd? i r fl]
940 [flonum? i r fl]
941 [flpositive? i r fl]
942 [flround i r fl]
943 [flsin i r fl]
944 [flsqrt i r fl]
945 [fltan i r fl]
946 [fltruncate i r fl]
947 [flzero? i r fl]
948 [real->flonum i r fl]
949 [make-no-infinities-violation i r fl]
950 [make-no-nans-violation i r fl]
951 [&no-infinities i r fl]
952 [no-infinities-violation? i r fl]
953 [&no-nans i r fl]
954 [no-nans-violation? i r fl]
955 [bytevector->sint-list i r bv]
956 [bytevector->u8-list i r bv]
957 [bytevector->uint-list i r bv]
958 [bytevector-copy i r bv]
959 [string-copy! i]
960 [bytevector-copy! i r bv]
961 [bytevector-fill! i r bv]
962 [bytevector-ieee-double-native-ref i r bv]
963 [bytevector-ieee-double-native-set! i r bv]
964 [bytevector-ieee-double-ref i r bv]
965 [bytevector-ieee-double-set! i r bv]
966 [bytevector-ieee-single-native-ref i r bv]
967 [bytevector-ieee-single-native-set! i r bv]
968 [bytevector-ieee-single-ref i r bv]
969 [bytevector-ieee-single-set! i r bv]
970 [bytevector-length i r bv]
971 [bytevector-s16-native-ref i r bv]
972 [bytevector-s16-native-set! i r bv]
973 [bytevector-s16-ref i r bv]
974 [bytevector-s16-set! i r bv]
975 [bytevector-s32-native-ref i r bv]
976 [bytevector-s32-native-set! i r bv]
977 [bytevector-s32-ref i r bv]
978 [bytevector-s32-set! i r bv]
979 [bytevector-s64-native-ref i r bv]
980 [bytevector-s64-native-set! i r bv]
981 [bytevector-s64-ref i r bv]
982 [bytevector-s64-set! i r bv]
983 [bytevector-s8-ref i r bv]
984 [bytevector-s8-set! i r bv]
985 [bytevector-sint-ref i r bv]
986 [bytevector-sint-set! i r bv]
987 [bytevector-u16-native-ref i r bv]
988 [bytevector-u16-native-set! i r bv]
989 [bytevector-u16-ref i r bv]
990 [bytevector-u16-set! i r bv]
991 [bytevector-u32-native-ref i r bv]
992 [bytevector-u32-native-set! i r bv]
993 [bytevector-u32-ref i r bv]
994 [bytevector-u32-set! i r bv]
995 [bytevector-u64-native-ref i r bv]
996 [bytevector-u64-native-set! i r bv]
997 [bytevector-u64-ref i r bv]
998 [bytevector-u64-set! i r bv]
999 [bytevector-u8-ref i r bv]
1000 [bytevector-u8-set! i r bv]
1001 [bytevector-uint-ref i r bv]
1002 [bytevector-uint-set! i r bv]
1003 [bytevector=? i r bv]
1004 [bytevector? i r bv]
1005 [endianness i r bv]
1006 [native-endianness i r bv]
1007 [sint-list->bytevector i r bv]
1008 [string->utf16 i r bv]
1009 [string->utf32 i r bv]
1010 [string->utf8 i r bv]
1011 [u8-list->bytevector i r bv]
1012 [uint-list->bytevector i r bv]
1013 [utf8->string i r bv]
1014 [utf16->string i r bv]
1015 [utf32->string i r bv]
1016 [print-condition i]
1017 [condition? i r co]
1018 [&assertion i r co]
1019 [assertion-violation? i r co]
1020 [&condition i r co]
1021 [condition i r co]
1022 [condition-accessor i r co]
1023 [condition-irritants i r co]
1024 [condition-message i r co]
1025 [condition-predicate i r co]
1026 [condition-who i r co]
1027 [define-condition-type i r co]
1028 [&error i r co]
1029 [error? i r co]
1030 [&implementation-restriction i r co]
1031 [implementation-restriction-violation? i r co]
1032 [&irritants i r co]
1033 [irritants-condition? i r co]
1034 [&lexical i r co]
1035 [lexical-violation? i r co]
1036 [make-assertion-violation i r co]
1037 [make-error i r co]
1038 [make-implementation-restriction-violation i r co]
1039 [make-irritants-condition i r co]
1040 [make-lexical-violation i r co]
1041 [make-message-condition i r co]
1042 [make-non-continuable-violation i r co]
1043 [make-serious-condition i r co]
1044 [make-syntax-violation i r co]
1045 [make-undefined-violation i r co]
1046 [make-violation i r co]
1047 [make-warning i r co]
1048 [make-who-condition i r co]
1049 [&message i r co]
1050 [message-condition? i r co]
1051 [&non-continuable i r co]
1052 [non-continuable-violation? i r co]
1053 [&serious i r co]
1054 [serious-condition? i r co]
1055 [simple-conditions i r co]
1056 [&syntax i r co]
1057 [syntax-violation-form i r co]
1058 [syntax-violation-subform i r co]
1059 [syntax-violation? i r co]
1060 [&undefined i r co]
1061 [undefined-violation? i r co]
1062 [&violation i r co]
1063 [violation? i r co]
1064 [&warning i r co]
1065 [warning? i r co]
1066 [&who i r co]
1067 [who-condition? i r co]
1068 [case-lambda i r ct]
1069 [do i r ct se ne]
1070 [unless i r ct]
1071 [when i r ct]
1072 [define-enumeration i r en]
1073 [enum-set->list i r en]
1074 [enum-set-complement i r en]
1075 [enum-set-constructor i r en]
1076 [enum-set-difference i r en]
1077 [enum-set-indexer i r en]
1078 [enum-set-intersection i r en]
1079 [enum-set-member? i r en]
1080 [enum-set-projection i r en]
1081 [enum-set-subset? i r en]
1082 [enum-set-union i r en]
1083 [enum-set-universe i r en]
1084 [enum-set=? i r en]
1085 [make-enumeration i r en]
1086 [enum-set? i]
1087 [environment i ev]
1088 [eval i ev se]
1089 [raise i r ex]
1090 [raise-continuable i r ex]
1091 [with-exception-handler i r ex]
1092 [guard i r ex]
1093 [binary-port? i r ip]
1094 [buffer-mode i r ip]
1095 [buffer-mode? i r ip]
1096 [bytevector->string i r ip]
1097 [call-with-bytevector-output-port i r ip]
1098 [call-with-port i r ip]
1099 [call-with-string-output-port i r ip]
1100 [assoc i r ls se]
1101 [assp i r ls]
1102 [assq i r ls se]
1103 [assv i r ls se]
1104 [cons* i r ls]
1105 [filter i r ls]
1106 [find i r ls]
1107 [fold-left i r ls]
1108 [fold-right i r ls]
1109 [for-all i r ls]
1110 [exists i r ls]
1111 [member i r ls se]
1112 [memp i r ls]
1113 [memq i r ls se]
1114 [memv i r ls se]
1115 [partition i r ls]
1116 [remq i r ls]
1117 [remp i r ls]
1118 [remv i r ls]
1119 [remove i r ls]
1120 [set-car! i mp se]
1121 [set-cdr! i mp se]
1122 [string-set! i ms se]
1123 [string-fill! i ms se]
1124 [command-line i r pr]
1125 [exit i r pr]
1126 [exit-handler i]
1127 [delay i r5 se ne]
1128 [exact->inexact i r5 se]
1129 [force i r5 se]
1130 [inexact->exact i r5 se]
1131 [modulo i r5 se]
1132 [remainder i r5 se]
1133 [null-environment i r5 se]
1134 [quotient i r5 se]
1135 [scheme-report-environment i r5 se]
1136 [interaction-environment i]
1137 [new-interaction-environment i]
1138 [close-port i r ip]
1139 [eol-style i r ip]
1140 [error-handling-mode i r ip]
1141 [file-options i r ip]
1142 [flush-output-port i r ip]
1143 [get-bytevector-all i r ip]
1144 [get-bytevector-n i r ip]
1145 [get-bytevector-n! i r ip]
1146 [get-bytevector-some i r ip]
1147 [get-char i r ip]
1148 [get-datum i r ip]
1149 [get-line i r ip]
1150 [read-line i]
1151 [get-string-all i r ip]
1152 [get-string-n i r ip]
1153 [get-string-n! i r ip]
1154 [get-u8 i r ip]
1155 [&i/o i r ip is fi]
1156 [&i/o-decoding i r ip]
1157 [i/o-decoding-error? i r ip]
1158 [&i/o-encoding i r ip]
1159 [i/o-encoding-error-char i r ip]
1160 [i/o-encoding-error? i r ip]
1161 [i/o-error-filename i r ip is fi]
1162 [i/o-error-port i r ip is fi]
1163 [i/o-error-position i r ip is fi]
1164 [i/o-error? i r ip is fi]
1165 [&i/o-file-already-exists i r ip is fi]
1166 [i/o-file-already-exists-error? i r ip is fi]
1167 [&i/o-file-does-not-exist i r ip is fi]
1168 [i/o-file-does-not-exist-error? i r ip is fi]
1169 [&i/o-file-is-read-only i r ip is fi]
1170 [i/o-file-is-read-only-error? i r ip is fi]
1171 [&i/o-file-protection i r ip is fi]
1172 [i/o-file-protection-error? i r ip is fi]
1173 [&i/o-filename i r ip is fi]
1174 [i/o-filename-error? i r ip is fi]
1175 [&i/o-invalid-position i r ip is fi]
1176 [i/o-invalid-position-error? i r ip is fi]
1177 [&i/o-port i r ip is fi]
1178 [i/o-port-error? i r ip is fi]
1179 [&i/o-read i r ip is fi]
1180 [i/o-read-error? i r ip is fi]
1181 [&i/o-write i r ip is fi]
1182 [i/o-write-error? i r ip is fi]
1183 [lookahead-char i r ip]
1184 [lookahead-u8 i r ip]
1185 [make-bytevector i r bv]
1186 [make-custom-binary-input-port i r ip]
1187 [make-custom-binary-output-port i r ip]
1188 [make-custom-textual-input-port i r ip]
1189 [make-custom-textual-output-port i r ip]
1190 [make-custom-binary-input/output-port i r ip]
1191 [make-custom-textual-input/output-port i r ip]
1192 [make-i/o-decoding-error i r ip]
1193 [make-i/o-encoding-error i r ip]
1194 [make-i/o-error i r ip is fi]
1195 [make-i/o-file-already-exists-error i r ip is fi]
1196 [make-i/o-file-does-not-exist-error i r ip is fi]
1197 [make-i/o-file-is-read-only-error i r ip is fi]
1198 [make-i/o-file-protection-error i r ip is fi]
1199 [make-i/o-filename-error i r ip is fi]
1200 [make-i/o-invalid-position-error i r ip is fi]
1201 [make-i/o-port-error i r ip is fi]
1202 [make-i/o-read-error i r ip is fi]
1203 [make-i/o-write-error i r ip is fi]
1204 [latin-1-codec i r ip]
1205 [make-transcoder i r ip]
1206 [native-eol-style i r ip]
1207 [native-transcoder i r ip]
1208 [transcoder? i]
1209 [open-bytevector-input-port i r ip]
1210 [open-bytevector-output-port i r ip]
1211 [open-file-input-port i r ip]
1212 [open-file-input/output-port i r ip]
1213 [open-file-output-port i r ip]
1214 [open-string-input-port i r ip]
1215 [open-string-output-port i r ip]
1216 [output-port-buffer-mode i r ip]
1217 [port-eof? i r ip]
1218 [port-has-port-position? i r ip]
1219 [port-has-set-port-position!? i r ip]
1220 [port-position i r ip]
1221 [input-port-column-number i]
1222 [input-port-row-number i]
1223 [port-transcoder i r ip]
1224 [port? i r ip]
1225 [put-bytevector i r ip]
1226 [put-char i r ip]
1227 [put-datum i r ip]
1228 [put-string i r ip]
1229 [put-u8 i r ip]
1230 [set-port-position! i r ip]
1231 [standard-error-port i r ip]
1232 [standard-input-port i r ip]
1233 [standard-output-port i r ip]
1234 [string->bytevector i r ip]
1235 [textual-port? i r ip]
1236 [transcoded-port i r ip]
1237 [transcoder-codec i r ip]
1238 [transcoder-eol-style i r ip]
1239 [transcoder-error-handling-mode i r ip]
1240 [utf-16-codec i r ip]
1241 [utf-8-codec i r ip]
1242 [input-port? i r is ip se]
1243 [output-port? i r is ip se]
1244 [current-input-port i r ip is se]
1245 [current-output-port i r ip is se]
1246 [current-error-port i r ip is]
1247 [eof-object i r ip is]
1248 [eof-object? i r ip is se]
1249 [close-input-port i r is se]
1250 [close-output-port i r is se]
1251 [display i r is se]
1252 [newline i r is se]
1253 [open-input-file i r is se]
1254 [open-output-file i r is se]
1255 [peek-char i r is se]
1256 [read i r is se]
1257 [read-char i r is se]
1258 [with-input-from-file i r is se]
1259 [with-output-to-file i r is se]
1260 [with-output-to-port i]
1261 [write i r is se]
1262 [write-char i r is se]
1263 [call-with-input-file i r is se]
1264 [call-with-output-file i r is se]
1265 [hashtable-clear! i r ht]
1266 [hashtable-contains? i r ht]
1267 [hashtable-copy i r ht]
1268 [hashtable-delete! i r ht]
1269 [hashtable-entries i r ht]
1270 [hashtable-keys i r ht]
1271 [hashtable-mutable? i r ht]
1272 [hashtable-ref i r ht]
1273 [hashtable-set! i r ht]
1274 [hashtable-size i r ht]
1275 [hashtable-update! i r ht]
1276 [hashtable? i r ht]
1277 [make-eq-hashtable i r ht]
1278 [make-eqv-hashtable i r ht]
1279 [hashtable-hash-function i r ht]
1280 [make-hashtable i r ht]
1281 [hashtable-equivalence-function i r ht]
1282 [equal-hash i r ht]
1283 [string-hash i r ht]
1284 [string-ci-hash i r ht]
1285 [symbol-hash i r ht]
1286 [list-sort i r sr]
1287 [vector-sort i r sr]
1288 [vector-sort! i r sr]
1289 [file-exists? i r fi]
1290 [delete-file i r fi]
1291 [rename-file i]
1292 [file-regular? i]
1293 [file-directory? i]
1294 [file-symbolic-link? i]
1295 [file-readable? i]
1296 [file-writable? i]
1297 [file-executable? i]
1298 [current-directory i]
1299 [directory-list i]
1300 [make-directory i]
1301 [make-directory* i]
1302 [delete-directory i]
1303 [directory-stream? i]
1304 [open-directory-stream i]
1305 [read-directory-stream i]
1306 [close-directory-stream i]
1307 [change-mode i]
1308 [make-symbolic-link i]
1309 [make-hard-link i]
1310 [file-ctime i]
1311 [file-mtime i]
1312 [file-size i]
1313 [file-real-path i]
1314 [split-file-name i]
1315 [fork i]
1316 [define-record-type i r rs]
1317 [fields i r rs]
1318 [immutable i r rs]
1319 [mutable i r rs]
1320 [opaque i r rs]
1321 [parent i r rs]
1322 [parent-rtd i r rs]
1323 [protocol i r rs]
1324 [record-constructor-descriptor i r rs]
1325 [record-type-descriptor i r rs]
1326 [sealed i r rs]
1327 [nongenerative i r rs]
1328 [record-field-mutable? i r ri]
1329 [record-rtd i r ri]
1330 [record-type-field-names i r ri]
1331 [record-type-generative? i r ri]
1332 [record-type-name i r ri]
1333 [record-type-opaque? i r ri]
1334 [record-type-parent i r ri]
1335 [record-type-sealed? i r ri]
1336 [record-type-uid i r ri]
1337 [record? i r ri]
1338 [make-record-constructor-descriptor i r rp]
1339 [make-record-type-descriptor i r rp]
1340 [record-accessor i r rp]
1341 [record-constructor i r rp]
1342 [record-mutator i r rp]
1343 [record-predicate i r rp]
1344 [record-type-descriptor? i r rp]
1345 [syntax-violation i r sc]
1346 [bound-identifier=? i r sc]
1347 [datum->syntax i r sc]
1348 [syntax i r sc]
1349 [syntax->datum i r sc]
1350 [syntax-case i r sc]
1351 [unsyntax i r sc]
1352 [unsyntax-splicing i r sc]
1353 [quasisyntax i r sc]
1354 [with-syntax i r sc]
1355 [free-identifier=? i r sc]
1356 [generate-temporaries i r sc]
1357 [identifier? i r sc]
1358 [make-variable-transformer i r sc]
1359 [variable-transformer? i]
1360 [variable-transformer-procedure i]
1361 [make-compile-time-value i]
1362 [syntax-transpose i]
1363 [char-alphabetic? i r uc se]
1364 [char-ci<=? i r uc se]
1365 [char-ci<? i r uc se]
1366 [char-ci=? i r uc se]
1367 [char-ci>=? i r uc se]
1368 [char-ci>? i r uc se]
1369 [char-downcase i r uc se]
1370 [char-foldcase i r uc]
1371 [char-titlecase i r uc]
1372 [char-upcase i r uc se]
1373 [char-general-category i r uc]
1374 [char-lower-case? i r uc se]
1375 [char-numeric? i r uc se]
1376 [char-title-case? i r uc]
1377 [char-upper-case? i r uc se]
1378 [char-whitespace? i r uc se]
1379 [string-ci<=? i r uc se]
1380 [string-ci<? i r uc se]
1381 [string-ci=? i r uc se]
1382 [string-ci>=? i r uc se]
1383 [string-ci>? i r uc se]
1384 [string-downcase i r uc]
1385 [string-foldcase i r uc]
1386 [string-normalize-nfc i r uc]
1387 [string-normalize-nfd i r uc]
1388 [string-normalize-nfkc i r uc]
1389 [string-normalize-nfkd i r uc]
1390 [string-titlecase i r uc]
1391 [string-upcase i r uc]
1392 [getenv i]
1393 [setenv i]
1394 [unsetenv i]
1395 [environ i]
1396 [nanosleep i]
1397 [char-ready? ]
1398 [load i]
1399 [load-r6rs-script i]
1400 [void i $boot]
1401 [gensym i symbols $boot]
1402 [symbol-value i symbols $boot]
1403 [system-value i]
1404 [set-symbol-value! i symbols $boot]
1405 [eval-core $boot]
1406 [current-core-eval i] ;;; temp
1407 [pretty-print i $boot]
1408 [pretty-format i]
1409 [pretty-width i]
1410 [module i cm]
1411 [library i]
1412 [syntax-dispatch ]
1413 [syntax-error i]
1414 [$transcoder->data $transc]
1415 [$data->transcoder $transc]
1416 [make-file-options i]
1417 ;;;
1418 [port-id i]
1419 [read-annotated i]
1420 [read-script-annotated i]
1421 [annotation? i]
1422 [annotation-expression i]
1423 [annotation-source i]
1424 [annotation-stripped i]
1425 [port-closed? i]
1426 [$make-port $io]
1427 [$port-tag $io]
1428 [$port-id $io]
1429 [$port-cookie $io]
1430 [$port-transcoder $io]
1431 [$port-index $io]
1432 [$port-size $io]
1433 [$port-buffer $io]
1434 [$port-get-position $io]
1435 [$port-set-position! $io]
1436 [$port-close $io]
1437 [$port-read! $io]
1438 [$port-write! $io]
1439 [$set-port-index! $io]
1440 [$set-port-size! $io]
1441 [$port-attrs $io]
1442 [$set-port-attrs! $io]
1443 ;;;
1444 [&condition-rtd]
1445 [&condition-rcd]
1446 [&message-rtd]
1447 [&message-rcd]
1448 [&warning-rtd]
1449 [&warning-rcd]
1450 [&serious-rtd]
1451 [&serious-rcd]
1452 [&error-rtd]
1453 [&error-rcd]
1454 [&violation-rtd]
1455 [&violation-rcd]
1456 [&assertion-rtd]
1457 [&assertion-rcd]
1458 [&irritants-rtd]
1459 [&irritants-rcd]
1460 [&who-rtd]
1461 [&who-rcd]
1462 [&non-continuable-rtd]
1463 [&non-continuable-rcd]
1464 [&implementation-restriction-rtd]
1465 [&implementation-restriction-rcd]
1466 [&lexical-rtd]
1467 [&lexical-rcd]
1468 [&syntax-rtd]
1469 [&syntax-rcd]
1470 [&undefined-rtd]
1471 [&undefined-rcd]
1472 [&i/o-rtd]
1473 [&i/o-rcd]
1474 [&i/o-read-rtd]
1475 [&i/o-read-rcd]
1476 [&i/o-write-rtd]
1477 [&i/o-write-rcd]
1478 [&i/o-invalid-position-rtd]
1479 [&i/o-invalid-position-rcd]
1480 [&i/o-filename-rtd]
1481 [&i/o-filename-rcd]
1482 [&i/o-file-protection-rtd]
1483 [&i/o-file-protection-rcd]
1484 [&i/o-file-is-read-only-rtd]
1485 [&i/o-file-is-read-only-rcd]
1486 [&i/o-file-already-exists-rtd]
1487 [&i/o-file-already-exists-rcd]
1488 [&i/o-file-does-not-exist-rtd]
1489 [&i/o-file-does-not-exist-rcd]
1490 [&i/o-port-rtd]
1491 [&i/o-port-rcd]
1492 [&i/o-decoding-rtd]
1493 [&i/o-decoding-rcd]
1494 [&i/o-encoding-rtd]
1495 [&i/o-encoding-rcd]
1496 [&no-infinities-rtd]
1497 [&no-infinities-rcd]
1498 [&no-nans-rtd]
1499 [&no-nans-rcd]
1500 [&interrupted-rtd]
1501 [&interrupted-rcd]
1502 [&source-rtd]
1503 [&source-rcd]
1504 [tcp-connect i]
1505 [udp-connect i]
1506 [tcp-connect-nonblocking i]
1507 [udp-connect-nonblocking i]
1508 [tcp-server-socket i]
1509 [tcp-server-socket-nonblocking i]
1510 [accept-connection i]
1511 [accept-connection-nonblocking i]
1512 [close-tcp-server-socket i]
1513 [register-callback i]
1514 [input-socket-buffer-size i]
1515 [output-socket-buffer-size i]
1516 [ellipsis-map ]
1517 [optimize-cp i]
1518 [optimize-level i]
1519 [cp0-size-limit i]
1520 [cp0-effort-limit i]
1521 [tag-analysis-output i]
1522 [perform-tag-analysis i]
1523 [current-letrec-pass i]
1524 [pointer? $for]
1525 [pointer->integer $for]
1526 [integer->pointer $for]
1527 [dlopen $for]
1528 [dlerror $for]
1529 [dlclose $for]
1530 [dlsym $for]
1531 [malloc $for]
1532 [free $for]
1533 [memcpy $for]
1534 [errno $for]
1535 [pointer-ref-c-signed-char $for]
1536 [pointer-ref-c-signed-short $for]
1537 [pointer-ref-c-signed-int $for]
1538 [pointer-ref-c-signed-long $for]
1539 [pointer-ref-c-signed-long-long $for]
1540 [pointer-ref-c-unsigned-char $for]
1541 [pointer-ref-c-unsigned-short $for]
1542 [pointer-ref-c-unsigned-int $for]
1543 [pointer-ref-c-unsigned-long $for]
1544 [pointer-ref-c-unsigned-long-long $for]
1545 [pointer-ref-c-float $for]
1546 [pointer-ref-c-double $for]
1547 [pointer-ref-c-pointer $for]
1548 [pointer-set-c-char! $for]
1549 [pointer-set-c-short! $for]
1550 [pointer-set-c-int! $for]
1551 [pointer-set-c-long! $for]
1552 [pointer-set-c-long-long! $for]
1553 [pointer-set-c-pointer! $for]
1554 [pointer-set-c-float! $for]
1555 [pointer-set-c-double! $for]
1556 [make-c-callout $for]
1557 [make-c-callback $for]
1558 [host-info i]
1559 [debug-call ]
1560
1561 ))
1562
1563 (define (macro-identifier? x)
1564 (and (assq x ikarus-system-macros) #t))
1565
1566 (define (procedure-identifier? x)
1567 (not (macro-identifier? x)))
1568
1569 (define bootstrap-collection
1570 (let ([ls
1571 (let f ([ls library-legend])
1572 (define required? cadddr)
1573 (define library-name cadr)
1574 (cond
1575 [(null? ls) '()]
1576 [(required? (car ls))
1577 (cons (find-library-by-name (library-name (car ls)))
1578 (f (cdr ls)))]
1579 [else (f (cdr ls))]))])
1580 (case-lambda
1581 [() ls]
1582 [(x) (unless (memq x ls)
1583 (set! ls (cons x ls)))])))
1584
1585 (define (verify-map)
1586 (define (f x)
1587 (for-each
1588 (lambda (x)
1589 (unless (assq x library-legend)
1590 (error 'verify "not in the libraries list" x)))
1591 (cdr x)))
1592 (for-each f identifier->library-map))
1593
1594 (library (ikarus makefile collections)
1595 (export make-collection)
1596 (import (rnrs))
1597 (define (make-collection)
1598 (let ([set '()])
1599 (case-lambda
1600 [() set]
1601 [(x) (set! set (cons x set))]))))
1602
1603 (import (ikarus makefile collections))
1604
1605 (define verbose-output? #f)
1606
1607 (define debugf
1608 (if verbose-output?
1609 printf
1610 (case-lambda
1611 [(str) (printf str)]
1612 [(str . args) (printf ".")])))
1613
1614 (define (assq1 x ls)
1615 (let f ([x x] [ls ls] [p #f])
1616 (cond
1617 [(null? ls) p]
1618 [(eq? x (caar ls))
1619 (if p
1620 (if (pair? p)
1621 (if (eq? (cdr p) (cdar ls))
1622 (f x (cdr ls) p)
1623 (f x (cdr ls) 2))
1624 (f x (cdr ls) (+ p 1)))
1625 (f x (cdr ls) (car ls)))]
1626 [else (f x (cdr ls) p)])))
1627
1628 (define (make-system-data subst env)
1629 (define who 'make-system-data)
1630 (let ([export-subst (make-collection)]
1631 [export-env (make-collection)]
1632 [export-primlocs (make-collection)])
1633 (for-each
1634 (lambda (x)
1635 (let ([name (car x)] [binding (cadr x)])
1636 (let ([label (gensym)])
1637 (export-subst (cons name label))
1638 (export-env (cons label binding)))))
1639 ikarus-system-macros)
1640 (for-each
1641 (lambda (x)
1642 (when (procedure-identifier? x)
1643 (cond
1644 [(assq x (export-subst))
1645 (error who "ambiguous export" x)]
1646 [(assq1 x subst) =>
1647 ;;; primitive defined (exported) within the compiled libraries
1648 (lambda (p)
1649 (unless (pair? p)
1650 (error who "invalid exports" p x))
1651 (let ([label (cdr p)])
1652 (cond
1653 [(assq label env) =>
1654 (lambda (p)
1655 (let ([binding (cdr p)])
1656 (case (car binding)
1657 [(global)
1658 (export-subst (cons x label))
1659 (export-env (cons label (cons 'core-prim x)))
1660 (export-primlocs (cons x (cdr binding)))]
1661 [else
1662 (error #f "invalid binding for identifier" p x)])))]
1663 [else (error #f "cannot find binding" x label)])))]
1664 [else
1665 ;;; core primitive with no backing definition, assumed to
1666 ;;; be defined in other strata of the system
1667 ;(printf "undefined primitive ~s\n" x)
1668 (let ([label (gensym)])
1669 (export-subst (cons x label))
1670 (export-env (cons label (cons 'core-prim x))))])))
1671 (map car identifier->library-map))
1672 (values (export-subst) (export-env) (export-primlocs))))
1673
1674 (define (get-export-subset key subst)
1675 (let f ([ls subst])
1676 (cond
1677 [(null? ls) '()]
1678 [else
1679 (let ([x (car ls)])
1680 (let ([name (car x)])
1681 (cond
1682 [(assq name identifier->library-map)
1683 =>
1684 (lambda (q)
1685 (cond
1686 [(memq key (cdr q))
1687 (cons x (f (cdr ls)))]
1688 [else (f (cdr ls))]))]
1689 [else
1690 ;;; not going to any library?
1691 (f (cdr ls))])))])))
1692
1693 (define (build-system-library export-subst export-env primlocs)
1694 (define (build-library legend-entry)
1695 (let ([key (car legend-entry)]
1696 [name (cadr legend-entry)]
1697 [visible? (caddr legend-entry)])
1698 (let ([id (gensym)]
1699 [name name]
1700 [version (if (eq? (car name) 'rnrs) '(6) '())]
1701 [import-libs '()]
1702 [visit-libs '()]
1703 [invoke-libs '()])
1704 (let-values ([(subst env)
1705 (if (equal? name '(psyntax system $all))
1706 (values export-subst export-env)
1707 (values
1708 (get-export-subset key export-subst)
1709 '()))])
1710 `(install-library
1711 ',id ',name ',version ',import-libs ',visit-libs ',invoke-libs
1712 ',subst ',env void void '#f '#f '#f '() ',visible? '#f)))))
1713 (let ([code `(library (ikarus primlocs)
1714 (export) ;;; must be empty
1715 (import
1716 (only (ikarus.symbols) system-value-gensym)
1717 (only (psyntax library-manager)
1718 install-library)
1719 (only (ikarus.compiler)
1720 current-primitive-locations)
1721 (ikarus))
1722 (let ([g system-value-gensym])
1723 (for-each
1724 (lambda (x) (putprop (car x) g (cdr x)))
1725 ',primlocs)
1726 (let ([proc
1727 (lambda (x) (getprop x g))])
1728 (current-primitive-locations proc)))
1729 ,@(map build-library library-legend))])
1730 (let-values ([(name code empty-subst empty-env)
1731 (boot-library-expand code)])
1732 (values name code))))
1733
1734 ;;; the first code to run on the system is one that initializes
1735 ;;; the value and proc fields of the location of $init-symbol-value!
1736 ;;; Otherwise, all subsequent inits to any global variable will
1737 ;;; segfault.
1738
1739 (define (make-init-code)
1740 (define proc (gensym))
1741 (define loc (gensym))
1742 (define label (gensym))
1743 (define sym (gensym))
1744 (define val (gensym))
1745 (define args (gensym))
1746 (values
1747 (list '(ikarus.init))
1748 (list
1749 `((case-lambda
1750 [(,proc) (,proc ',loc ,proc)])
1751 (case-lambda
1752 [(,sym ,val)
1753 (begin
1754 ((primitive $set-symbol-value!) ,sym ,val)
1755 (if ((primitive procedure?) ,val)
1756 ((primitive $set-symbol-proc!) ,sym ,val)
1757 ((primitive $set-symbol-proc!) ,sym
1758 (case-lambda
1759 [,args
1760 ((primitive error)
1761 'apply
1762 '"not a procedure"
1763 ((primitive $symbol-value) ,sym))]))))])))
1764 `([$init-symbol-value! . ,label])
1765 `([,label . (global . ,loc)])))
1766
1767 (define src-dir (or (getenv "IKARUS_SRC_DIR") "."))
1768
1769 (define (expand-all files)
1770 ;;; remove all re-exported identifiers (those with labels in
1771 ;;; subst but not binding in env).
1772 (define (prune-subst subst env)
1773 (cond
1774 ((null? subst) '())
1775 ((not (assq (cdar subst) env)) (prune-subst (cdr subst) env))
1776 (else (cons (car subst) (prune-subst (cdr subst) env)))))
1777 (let-values (((name* code* subst env) (make-init-code)))
1778 (debugf "Expanding ")
1779 (for-each
1780 (lambda (file)
1781 (debugf " ~s" file)
1782 (load (string-append src-dir "/" file)
1783 (lambda (x)
1784 (let-values ([(name code export-subst export-env)
1785 (boot-library-expand x)])
1786 (set! name* (cons name name*))
1787 (set! code* (cons code code*))
1788 (set! subst (append export-subst subst))
1789 (set! env (append export-env env))))))
1790 files)
1791 (debugf "\n")
1792 (let-values ([(export-subst export-env export-locs)
1793 (make-system-data (prune-subst subst env) env)])
1794 (let-values ([(name code)
1795 (build-system-library export-subst export-env export-locs)])
1796 (values
1797 (reverse (cons* (car name*) name (cdr name*)))
1798 (reverse (cons* (car code*) code (cdr code*)))
1799 export-locs)))))
1800
1801 (verify-map)
1802
1803 (time-it "the entire bootstrap process"
1804 (lambda ()
1805 (let-values ([(name* core* locs)
1806 (time-it "macro expansion"
1807 (lambda ()
1808 (parameterize ([current-library-collection
1809 bootstrap-collection])
1810 (expand-all scheme-library-files))))])
1811 (current-primitive-locations
1812 (lambda (x)
1813 (cond
1814 [(assq x locs) => cdr]
1815 [else
1816 (error 'bootstrap "no location for primitive" x)])))
1817 (let ([p (open-file-output-port "ikarus.boot"
1818 (file-options no-fail))])
1819 (time-it "code generation and serialization"
1820 (lambda ()
1821 (debugf "Compiling ")
1822 (for-each
1823 (lambda (name core)
1824 (debugf " ~s" name)
1825 (compile-core-expr-to-port core p))
1826 name*
1827 core*)
1828 (debugf "\n")))
1829 (close-output-port p)))))
1830
1831 ;(print-missing-prims)
1832
1833 (printf "Happy Happy Joy Joy\n")
1834
1835
1836 ;;; vim:syntax=scheme
1837
1838
1839 #!eof
1840
1841