From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.128.78 with SMTP id nm14mr36325009pdb.8.1436671486209; Sat, 11 Jul 2015 20:24:46 -0700 (PDT) X-Received: by 10.140.101.208 with SMTP id u74mr408341qge.5.1436671485896; Sat, 11 Jul 2015 20:24:45 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!qs7no4045975igc.0!news-out.google.com!w15ni32459qge.0!nntp.google.com!z61no387585qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Jul 2015 20:24:45 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.138.108.113; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 50.138.108.113 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2036d22f-83ce-4bc2-809f-7be844fb1500@googlegroups.com> Subject: Re: Self-modifying code From: David Botton Injection-Date: Sun, 12 Jul 2015 03:24:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:26785 Date: 2015-07-11T20:24:45-07:00 List-Id: > 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 afte= r 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, th= en unload it when done from memory would be the cleanest way to do it in mo= st cases, aka Plug-ins. David Botton