> (compile-program "hello-world.ss")
compiling hello-world.ss with output to hello-world.so
()
> (make-boot-file "hello-world.boot" '("scheme" "petite") "hello-world.so")
$ petite --boot ./hello-world.boot
Exception in compiler-internal: $invoke-program: unable to locate program descriptor for #{program...
#!chezscheme;;; hello-world.ss;;; A super simple Hello World program for Chez Scheme.
(import (chezscheme))
(scheme-start (lambda fns (for-each (lambda (fn) (printf "loading ~a ..." fn) (load fn) (printf "~%")) fns) (display "Starting a new Café.") (new-cafe)));;; hello.ss
(define (hello)
(printf "hello world~n"))
(make-boot-file "hello.boot" '("petite") "hello.ss")
(compile-file "hello.ss")
(make-boot-file "hello.boot" '("petite") "hello.so")graham.watt@gwatt-mbp: ~/code/scheme
519 $ scheme -b ./hello.boot
Petite Chez Scheme Version 9.4.1
Copyright 1984-2016 Cisco Systems, Inc.
> (hello)
hello world
> (compile-file "hello-world.ss")
compiling hello-world.ss with output to hello-world.so
> (make-boot-file "hello-world.boot" '("scheme" "petite") "hello-world.so")
>
$ petite --boot ./hello-world.boot
Chez Scheme Version 9.4
Copyright 1984-2016 Cisco Systems, Inc.
Starting a new Café.
>
--
You received this message because you are subscribed to the Google Groups "chez-scheme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chez-scheme...@googlegroups.com.
To post to this group, send email to chez-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chez-scheme/311e60d1-c24b-4ea0-908f-634d063f9d53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.