On Thu, 6 Jul 2017 11:06:17 -0700 (PDT), spearman
<pearman...@gmail.com> wrote:

>On Tuesday, July 4, 2017 at 4:00:14 PM UTC-7, Hendrik Boom wrote:
>
>> Not exactly what you're asking for, but Gambit is a Scheme 
>> implementation that compiles to C (or C++).  You can define functions 
>> and specify what C ode should be used to implement them.  So in a 
>> sense, macros in Gambit end up generating C code.
>>
>So that's like a source-to-source compiler? They claim to support
>the full Scheme standard so I guess there's a runtime and/or GC
>gets involved at some point, something I would like to avoid.

There are several Schemes that compile to C, but most people want all
the bells and whistles.

If you don't need full featured Scheme, but are interested mainly in
efficient object code, you might look at PreScheme.  PreScheme is
statically typed, compiles to C, has very minimal runtime and no GC
(you can deallocate memory manually if desired).

It's included in the Scheme48 distribution (http://s48.org/).


There is approximately zero documentation: PreScheme was designed for
bare metal programming and as a bootstrap compiler for Scheme48, but
Rick Kelsey's paper on it is here:
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.3.4031


George

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to