public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* Modifying the jit compiler API?
@ 2023-06-09 23:04 Joshua Saxby
  0 siblings, 0 replies; only message in thread
From: Joshua Saxby @ 2023-06-09 23:04 UTC (permalink / raw)
  To: jit

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

Currently the JIT has two functions allowing you to compile a context
either to memory or to file.

But what if you want to compile to both? There doesn't seem to be any way
to do this except by calling both functions separately which I believe will
effectively be two separate compilations...

Presumably, it should be possible to modify this part of the API to compile
to some form of intermediate representation of the work that is common to
both kinds of compilation, and then turn that into code in memory and in
file, respectively.

Anyone got any pointers for me on where in the code would be the best place
for me to modify to dupport this? I did take a look in the implementation
code of JIT sone weeks ago and remember seeing lots of complicated stuff
regarding recordings and replays that looked relevant...

A slighty simpler alteration I am also interested in making is allowing
compile to file to compile to a buffer in memory as well as a file (I
suppose it could be termed "compile to binary"). Maybe I should start with
that...

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-09 23:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09 23:04 Modifying the jit compiler API? Joshua Saxby

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).