unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: guile-user@gnu.org
Subject: Re: How best to produce a standalone executable with Guile?
Date: Sun, 5 Apr 2020 07:44:18 -0700	[thread overview]
Message-ID: <a0853855-b588-ab59-0ad6-6fd5c9728d2a@gmail.com> (raw)
In-Reply-To: <CAB_RW2E5s7Wd4yRA81OcaGLtGoFsvjOR1hCGhD=W7EC4FHr8HA@mail.gmail.com>

On 4/4/20 10:28 PM, James Cooper wrote:
> Hi Guile folks,
>
> I am currently experimenting with a handful of languages that include
> modern implementations of Concurrent ML, to determine which one appears
> best able to handle computationally- and message-heavy workloads (at least
> for my purposes, Computer Vision).  Guile is one of the languages I am
> trying out with the Fibers library.
>
> My question is, how can I best go about creating Linux executables from
> Guile, where said programs benefit from the most ahead-of-time compilation
> and optimisation possible?  I don't believe they strictly need to be
> standalone, as the environment I will be running the programs in will
> likely be the same as the development environment. So they can undoubtedly
> have dependencies on external libraries.  Furthermore, I am perfectly happy
> with the process being a bit convoluted, as I can easily automate it with a
> makefile.  I would, however, prefer if at all possible that the option to
> target other processor architectures remains available down the line (I
> assume using GCC can enable this, but I'm not sure).
>
> [...]
You can't produce a pre-compiled machine code binary of your guile
program.  I believe you can use the environment variable
GUILE_JIT_THRESHOLD set to zero to have your code compiled to
machine code on first use.

$ GUILE_JIT_THRESHOLD=0 guile my-program.scm

You can also start execution of your guile program from C using
the techniques described in the section "Programming in C" in the
Guile Reference Manual.

Matt




  reply	other threads:[~2020-04-05 14:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-05  5:28 How best to produce a standalone executable with Guile? James Cooper
2020-04-05 14:44 ` Matt Wette [this message]
2020-04-07  9:31 ` James Cooper
2020-04-07 21:30   ` Arne Babenhauserheide
     [not found] <mailman.85.1586102413.15610.guile-user@gnu.org>
2020-04-05 17:19 ` Christopher Howard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a0853855-b588-ab59-0ad6-6fd5c9728d2a@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).