chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] compiling with a precompiled module


From: Martin DeMello
Subject: [Chicken-users] compiling with a precompiled module
Date: Mon, 19 Jul 2010 00:26:37 +0530

I have some scheme code that I want to wrap in a module and then use
as a shared library.

$ cat body.scm
(define (hello)
  (print "hello world"))

$ cat outer.scm
(module foo *
  (import chicken)
  (import scheme)
  (include "body"))

$ csc -s outer.scm

$ cat test.scm
(load "outer.so")
(import foo)

(hello)

$ csi -s test.scm
hello world

So far so good. But now, how do I compile test.scm? I've not been able
to find the magical compiler incantation, and everything I could find
on the wiki just talks about the interpreter.

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]