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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc35bf7ba6fca42d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Wes Groleau Newsgroups: comp.lang.ada Subject: Re: "new" word Date: Thu, 17 Mar 2005 23:03:30 -0500 Organization: Ain't no organization here! Message-ID: <39v27pF67061jU1@individual.net> References: <1110966980.482176.111570@f14g2000cwb.googlegroups.com> Reply-To: groleau+news@freeshell.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net NWbLhmEiUg5I1uosIXBfQgh03GeWeZToap52ck/ePz4w6mWIVG User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en In-Reply-To: <1110966980.482176.111570@f14g2000cwb.googlegroups.com> Path: g2news1.google.com!news1.google.com!proxad.net!feed.ac-versailles.fr!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Xref: g2news1.google.com comp.lang.ada:9581 Date: 2005-03-17T23:03:30-05:00 List-Id: fabio de francesco wrote: > "Usually you allocate memory with the Ada new statement. Where does new > get its memory? It uses the standard C library's malloc function." > > Does really Ada use Libc to implement "new"? Is it true? Is the book writing about Ada, or about GNAT? It is not completely true about "Ada" -- each compiler vendor has their own method. HOWEVER, if the compilar and run-time runs on an operating system, memory allocation _has_ to eventually get back to that operating system's allocation mechanism, no matter how many levels of indirection are in between. -- Wes Groleau ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ A UNIX signature isn't a return address, it's the ASCII equivalent ^ ^ of a black velvet clown painting. It's a rectangle of carets ^ ^ surrounding a quote from a literary giant of weeniedom like ^ ^ Heinlein or Dr. Who. ^ ^ -- Chris Maeda ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^