Re: Running Compiled Guile Objects

Nala Ginrut <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <CAPjoZoc92PiQxwY=S_7-Y18WenfXTT4A2XnNm111FawWN7xYFw@mail.gmail.com>
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 <[email protected]> wrote:

> Nala Ginrut <[email protected]> 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 <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.