guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running Compiled Guile Objects


From: Nala Ginrut
Subject: Re: Running Compiled Guile Objects
Date: Sat, 14 Dec 2024 11:33:16 +0900

Hi Keith!
AOT stands for "Ahead-of-Time," and in this context, it refers to the
process of compiling source code directly into native machine code,
allowing the program to be executed as a regular binary file without
requiring a runtime interpreter.

@Hakan
The current .go file will be generated and loaded automatically, so one
don't have to load it explicitly.

To run a Guile source code, here's the document:
https://www.gnu.org/software/guile/manual/html_node/Running-Guile-Scripts.html

Basically, you run it as script, Guile will compile it to .go and load it.

Best regards.

On Sat, Dec 14, 2024, 10:14 Keith Wright <kwright@keithdiane.us> wrote:

> Nala Ginrut <nalaginrut@gmail.com> writes:
>
> > The current Guile is not AOT yet.
>
> Google says: Attack On Titan.
>
> > Although the object file is ELF, it's just bytecode wrapped ELF
> > header. So you can't run it as a regular executable file.
>
> I don't think that was the question...Hakan wants to call the
> Guile executable and pass it a *.go file.
>
> > On Sat, Dec 14, 2024, 07:35 Hakan Candar via General Guile related
> > discussions <guile-user@gnu.org> wrote:
> >
> >> Dear Guile Users,
> >>
> >> I am unable to run guile objects directly from the command line. I
>
> >> inspected the manual thoroughly, however I did not see any mention of
> >> my desired action. Is it possible to execute guile objects directly,
> >> or are they reserved for internal caching mechanism only?
> >>
> >> I tried the following commands with no luck:
> >> guile3.0 example.scm.go
> >> guile3.0 --language=bytecode example.scm.go
> >>
> >> Your help and interest is much appreciated.
> >>
> >> Thanks,
> >> Hakan
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]