Racket and Assembly

49 views
Skip to first unread message

Daniel Santos

unread,
Dec 30, 2020, 2:10:27 PM12/30/20
to racket...@googlegroups.com
Hi.

I really want to know is if Racket compiles code directly into assembly?
Or does it do: Racket -> C -> Assembly ? Or something else ?

Thank you

Matt Jadud

unread,
Dec 30, 2020, 2:44:53 PM12/30/20
to Daniel Santos, Racket Users
Hi Daniel,

As a start to answering your question(s), you might try the 2019 ICFP experience report on rebuilding Racket on top of Chez Scheme is probably a good place to look.


This will give you an overview of the architecture of the language/runtime, and should serve as a starting point for additional questions.

Cheers,
Matt


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAL6VdkStOUmBoWb%3DD3cgVpGnDaZ2mHKoPHbzy4U8Yjq%2BkxTVwg%40mail.gmail.com.

Hendrik Boom

unread,
Dec 30, 2020, 6:10:39 PM12/30/20
to Racket Users
On Wed, Dec 30, 2020 at 02:44:35PM -0500, Matt Jadud wrote:
> Hi Daniel,
>
> As a start to answering your question(s), you might try the 2019 ICFP
> experience report on rebuilding Racket on top of Chez Scheme is probably a
> good place to look.
>
> https://www.cs.utah.edu/plt/publications/icfp19-fddkmstz.pdf
>
> This will give you an overview of the architecture of the language/runtime,
> and should serve as a starting point for additional questions.
>
> Cheers,
> Matt

There is an implementation that was designed to compile straight to C:
Gambit.
You can also use it to compile to C++ if you need to.

It has mechanisms that allow you, if you wish, to specify how entities
you define will be translated. (I strongly suspect that these
mechanisms are used in its implementation).

This makes it useful as a kind of scripting language on top of C.

These mechanisms are not available in its interpreter.

Have fun exporing it. It does not have as extensive a set of libraries
as Racket does.

Someone has even managed to make a PC boot directly into the Gambit
interpreter, without an intervening OS.

-- hendrik

>
>
> On Wed, Dec 30, 2020 at 2:10 PM Daniel Santos <dannysa...@gmail.com>
> wrote:
>
> > Hi.
> >
> > I really want to know is if Racket compiles code directly into assembly?
> > Or does it do: Racket -> C -> Assembly ? Or something else ?
> >
> > Thank you
> >
> > --
> > 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...@googlegroups.com.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/racket-users/CAL6VdkStOUmBoWb%3DD3cgVpGnDaZ2mHKoPHbzy4U8Yjq%2BkxTVwg%40mail.gmail.com
> > <https://groups.google.com/d/msgid/racket-users/CAL6VdkStOUmBoWb%3DD3cgVpGnDaZ2mHKoPHbzy4U8Yjq%2BkxTVwg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> > .
> >
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAAGM457ige6J-EsnSSHF7Fuv3Vc9DxF%3DK9jdqP23%3DWyDkgZ5Yg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages