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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,216b18d81cce4f75 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-10 05:15:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Ada Microkernel? Date: Sun, 10 Jun 2001 14:14:16 +0200 Organization: Ecole Nationale Superieure des Telecommunications Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3B183CB8.3EE396E7@engineer.com> <_M3S6.8957$HL5.1284411@news6-win.server.ntlworld.com> <8DKS6.27593$%_1.4657414@news2-win.server.ntlworld.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 992175320 76466 137.194.161.2 (10 Jun 2001 12:15:20 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 10 Jun 2001 12:15:20 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from gerhard.nospam@bigfoot.de on Sun, Jun 10, 2001 at 09:13:25AM +0200 Precedence: special-delivery X-WWW: http://www.rfc1149.net/sam X-Mail-Processing: Sam's procmail tools X-ICQ: 21547599 X-Sam-Laptop: yes Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 X-Reply-To: Samuel Tardieu List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:8507 Date: 2001-06-10T14:14:16+02:00 On 10/06, Gerhard H�ring wrote: | Last time I tried to do OS programming with GNAT, I couldn't create dynamic | objects, because the GNAT runtime calls malloc, which doesn't exist in the | Linux kernel. kmalloc does exist, of course. You are the one to blame in this case: if you do kernel programming, then you have to call kmalloc() yourself (and carefully), rather than using Ada's high-level allocator. Another alternative would be to use storage pools that call kmalloc(), this way you could use new and Ada.Unchecked_Deallocation instances from your code.