guile-user
[Top][All Lists]
Advanced

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

Re: Running Compiled Guile Objects


From: Dr. Arne Babenhauserheide
Subject: Re: Running Compiled Guile Objects
Date: Sat, 14 Dec 2024 20:21:24 +0100

Nala Ginrut <nalaginrut@gmail.com> writes:

> On Sat, Dec 14, 2024, 07:35 Hakan Candar via General Guile related
> discussions <guile-user@gnu.org> wrote:
>> I tried the following commands with no luck:
>> guile3.0 example.scm.go
>> guile3.0 --language=bytecode example.scm.go
>>
> The current Guile is not AOT yet. Although the object file is ELF, it's
> just bytecode wrapped ELF header. So you can't run it as a regular
> executable file.

The commands don’t look like running the files as executables, but
rather like running bytecode from Guile.

I think what works is

guile3.0 -C . -L . -e '(example)' -c ''

That should execute the main function in a module created with

(define-module (example) #:export (main))
(define (main args) #t)

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

Attachment: signature.asc
Description: PGP signature


reply via email to

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