[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] syntax-case and static executables
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] syntax-case and static executables |
Date: |
Thu, 5 Apr 2007 09:48:12 +0200 |
On 4/5/07, Mark Voortman <address@hidden> wrote:
Hello,
Is it possible to compile the syntax-case egg into a statically linked
executable? If yes, how? If no, is there any chance this will be possible
in the near future?
I assume you want to use the expander stand-alone, right?
Fetch the syntax-case egg, untar it and run:
% csi -s psyntax-bootstrap.scm
% csc syntax-case.scm -c -static -v -unit syntax-case
% cat x.scm
(declare (uses syntax-case utils))
(port-for-each
(lambda (x)
(pp (sc-expand x)))
read)
% csc x.scm -static-libs syntax-case.o -o x
% x
123
'123
(let loop ()(loop))
((let ((g1334 (##core#undefined)))
(begin (##core#set! g1334 (lambda () (g1334))) g1334)))
Note that this only supports standard syntax. To use chicken-specific
syntax, do a
(load "syntax-case-chicken-macros.scm")
in your code (the syntax-case egg doesn't support compiled expanders).
Hope this helps.
cheers,
felix