[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: run compiled (*.go) file from command line?
From: |
Matt Wette |
Subject: |
Re: run compiled (*.go) file from command line? |
Date: |
Tue, 17 Nov 2020 16:44:55 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 11/17/20 4:08 PM, Tim Meehan wrote:
Is it possible to run a compiled file from the command line with "guile"?
I'm assuming that it was compiled with something like:
guild compile --output=whatever.go whatever.scm
Or is it possible to just make an executable file out of "whatever.scm"?
Thx
$ cat hello.scm
(display "hello, world\n")
$ guild compile -o hello.go hello.scm
wrote `hello.go'
$ guile -c '(load-compiled "hello.go")'
hello, world