[gambit-list] Please don't delete the .c file
Bradley Lucier
lucier at math.purdue.edu
Wed Feb 6 20:12:46 EST 2008
On Feb 5, 2008, at 4:36 AM, Christian Jaeger wrote:
> How do I tell the |compile-file| procedure to keep the C file? I
> realize that there's the |compile-file-to-c| procedure, but usually
> I just want to compile-file and if that fails I want to investigate
> the c file. Well actually it might also be a good idea to not
> remove the .c file if the C compiler fails.
Marc:
More generally, it would be good to document all the options handled
in handle-options in gsc/_front.scm
> (define (handle-options opts)
> (reset-options)
> (let ((rev-remaining-opts '()))
> (for-each
> (lambda (opt)
> (case opt
> ((warnings)
> (set! compiler-option-warnings #t))
> ((verbose)
> (set! compiler-option-verbose #t))
> ((report)
> (set! compiler-option-report #t))
> ((expansion)
> (set! compiler-option-expansion #t))
> ((gvm)
> (set! compiler-option-gvm #t))
> ((debug)
> (set! compiler-option-debug #t))
> ((debug-source)
> (set! compiler-option-debug-source #t))
> ((debug-environments)
> (set! compiler-option-debug-environments #t))
> ((track-scheme)
> (set! compiler-option-track-scheme #t))
> ((c dynamic link flat check force keep-c
> o l prelude postlude
> cc-options ld-options-prelude ld-options)
> #f) ;; these options are innocuous
> (else
> (set! rev-remaining-opts
> (cons opt rev-remaining-opts)))))
> opts)
> (reverse rev-remaining-opts)))
It's not clear which of these options apply to (compile-file
"file.scm") from looking at the documentation.
Brad
More information about the Gambit-list
mailing list