[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
28.2 JVM back-end and SRFI-0
The currently running back-end may be tested by the means of the SRFI-0
cond-expand
form (see section SRFIs). That is, when the JVM is ran,
the bigloo-jvm
clause is true. Otherwise, the bigloo-c
is true. Example:
$ cat > foo.scm (module foo (main main)) (define (main argv) (cond-expand (bigloo-jvm (print "JVM back-end")) (bigloo-c (print "C back-end")) (else (error "main" "unsupported back-end" #unspecified)))) $ bigloo -jvm foo.scm $ a.out -| JVM back-end $ bigloo foo.scm $ a.out -| C back-end
This document was generated on March 31, 2014 using texi2html 5.0.