comp.lang.ada
 help / color / mirror / Atom feed
From: David Botton <david@botton.com>
Subject: Re: Self-modifying code
Date: Sat, 11 Jul 2015 20:24:45 -0700 (PDT)
Date: 2015-07-11T20:24:45-07:00	[thread overview]
Message-ID: <2036d22f-83ce-4bc2-809f-7be844fb1500@googlegroups.com> (raw)
In-Reply-To: <eb2440ca-06d4-4192-bdca-0444c2953eb9@googlegroups.com>

> More in detail: is it possible compile some code at runtime and inject it into the running program, on the fly? The ability to remove that code after it is no longer needed would also be important, to prevent hogging up the system memory which may result.

Sure. Spawn the compiler to create a shared dynamic library and load it, then unload it when done from memory would be the cleanest way to do it in most cases, aka Plug-ins.

David Botton

  reply	other threads:[~2015-07-12  3:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-12  1:57 Self-modifying code ferrariv65
2015-07-12  3:24 ` David Botton [this message]
2015-07-12  4:38 ` Paul Rubin
2015-07-12  5:09   ` David Botton
2015-07-12  5:53     ` Paul Rubin
2015-07-12  9:10       ` Georg Bauhaus
2015-07-12 11:54 ` anon
2015-07-12 15:40   ` David Botton
2015-07-27 11:29 ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox