Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating Small C Routine

77 views
Skip to first unread message

Steve

unread,
Jun 7, 2012, 2:36:08 PM6/7/12
to
'm looking for a lisp/scheme which can:
1) Output C code for the application
2) Can trim unused part (tree shake?) of the compiler/interpreter
which is not needed by the app itself.

I know Gambit-C can do something similar, but it seems a manual
process where the user specifies which parts of the kernel to keep.

Thanks, Steve

Jeffrey Mark Siskind

unread,
Jun 8, 2012, 12:37:50 PM6/8/12
to
stalin

Steve Graham

unread,
Jun 8, 2012, 1:13:23 PM6/8/12
to
Thanks, Jeffrey.

How does one go about trimming functions not needed by the application?

Steve

Jeffrey Mark Siskind

unread,
Jun 8, 2012, 3:59:27 PM6/8/12
to
its automatic. and not optional. the compiler is hardwired to always
do it.

Steve Graham

unread,
Jun 8, 2012, 4:02:42 PM6/8/12
to
Does it produce C program as an intermediate step?

Steve

Jeffrey Mark Siskind

unread,
Jun 9, 2012, 6:39:41 PM6/9/12
to
Yes. It produces a single C file that only links against -lc, -lm, and
-lgc.
-lm and -lgc are not necessary if they are not used. It can, of
course, link to
other things called through the FFI.
0 new messages