public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Stephan Dollberg <stephan.dollberg@gmail.com>
To: jit@gcc.gnu.org
Subject: [QUESTION] Using host functions in AOT mode
Date: Wed, 14 Jul 2021 18:32:54 +0100	[thread overview]
Message-ID: <CAE4R7x1epzun5ROXO=LibQWx+8LpEkAw67r3=XizrRaPYsCMNg@mail.gmail.com> (raw)

Hello,

in jit compilation mode I can call functions from the host binary by
using gcc_jit_context_new_call_through_ptr.

This doesn't work in AOT mode. Is there any way to include host
functions when compiling a binary in AOT mode?

GCC_JIT_OUTPUT_KIND_EXECUTABLE mentions that there is currently no
support for linking. I could see a work around where instead you
compile to GCC_JIT_OUTPUT_KIND_OBJECT_FILE and externally invoke gcc
to link your host/runtime and AOT-compiled functions together.

Cheers,
Stephan

             reply	other threads:[~2021-07-14 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14 17:32 Stephan Dollberg [this message]
2021-08-10 22:40 ` Petter Tomner
2021-08-11 20:11   ` Stephan Dollberg

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

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

  git send-email \
    --in-reply-to='CAE4R7x1epzun5ROXO=LibQWx+8LpEkAw67r3=XizrRaPYsCMNg@mail.gmail.com' \
    --to=stephan.dollberg@gmail.com \
    --cc=jit@gcc.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).