[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Embedding Chicken in C
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Embedding Chicken in C |
Date: |
Wed, 15 Nov 2006 07:24:27 +0100 |
On 11/14/06, Ivan Raikov <address@hidden> wrote:
;; test-chicken-embed.scm
(define (test-chicken-embed)
(print "test-chicken-embed")
(return-to-host))
(return-to-host) must be at toplevel (outside of the function).
Without it, the runtime-system will exit(3), without returning to
the host code.
If I compile with the following command:
csc -s -embedded test-chicken-embed.scm chicken-embed.c \
-o test-chicken-embed
The "-s" is not necessary here.
I use these options:
csc -embedded -c test-chicken-embed.scm
gcc `csc -cflags -libs` chicken-embed.c test-chicken-embed.o -o
test-chicken-embed
cheers,
felix
--
http://galinha.ucpel.tche.br:8081/blog/blog.ssp