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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8bfa8c460ead1701 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!out04a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!bigfeed3.bellsouth.net!news.bellsouth.net!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problems with dynamic allocation in tasks Date: Thu, 26 Jul 2007 21:56:53 +0100 Organization: Pushface Message-ID: References: <1185379864.592973.73220@b79g2000hse.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1185483417 3962 62.49.19.209 (26 Jul 2007 20:56:57 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 26 Jul 2007 20:56:57 +0000 (UTC) Cancel-Lock: sha1:qw4Sb//M//OLlz7YtcNBtkbE/K0= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news2.google.com comp.lang.ada:1211 Date: 2007-07-26T21:56:53+01:00 List-Id: ldb writes: > In a nut shell, what I want to be able to do is take System.Memory, > copy it, change a line of code (Put_Line("hello world")), and then > be able to replace the global allocator with this one. I was able to > get a replacement body for System.Memory to build with the gnatg > flag, and was able to get an o file, but whenever i make a simple > test program it automatically wants to put the original > System.Memory in and I get duplicate units if I try to bind them. I'm pretty sure that gnatmake -a recompiles all library units affected by a change. So if you put your replacement library source in the normal source path (eg in the current directory) gnatmake -a will recompile all the library files that use it, automatically applying the right flags (-gnatpg etc).