1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-17 22:22:25 +02:00

Compile-time debugging

* module/language/cps/compile-rtl.scm:
* module/language/cps/contification.scm: Add some compile-time
  printouts.  Will be removed later.
This commit is contained in:
Andy Wingo 2013-10-27 20:10:59 +01:00
parent 334bd8e3c1
commit 6a37b7faaf
2 changed files with 9 additions and 3 deletions

View file

@ -50,7 +50,9 @@
(define (optimize exp opts)
(define (run-pass exp pass kw default)
(if (kw-arg-ref opts kw default)
(pass exp)
(begin
(pk 'OPTIMIZING kw)
(pass exp))
exp))
;; Calls to source-to-source optimization passes go here.
@ -433,11 +435,13 @@
(emit-end-program asm)))))
(define (compile-rtl exp env opts)
(pk 'COMPILING)
(let* ((exp (fix-arities exp))
(exp (optimize exp opts))
(exp (convert-closures exp))
(exp (reify-primitives exp))
(asm (make-assembler)))
(pk 'CODEGEN)
(visit-funs (lambda (fun)
(compile-fun fun asm))
exp)