From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: "new" word
Date: 16 Mar 2005 05:36:27 -0600
Date: 2005-03-16T05:36:27-06:00 [thread overview]
Message-ID: <bA6ksRCB1d+P@eisner.encompasserve.org> (raw)
In-Reply-To: 1110966980.482176.111570@f14g2000cwb.googlegroups.com
In article <1110966980.482176.111570@f14g2000cwb.googlegroups.com>, "fabio de francesco" <fmdf@tiscali.it> writes:
> Ciao,
>
> While reading "the big online book of Linux Ada programming", by Ken O.
> Burtch, I stopped at the following assertion
> (http://www.pegasoft.ca/resources/boblap/13.html):
>
> "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?
Of course not. Ada is a language standard, and allocates memory out of
thin air. That memory has no physical reality and costs nothing. It is
unlimited in size.
Some particular Ada _implementation_ however, has to deal with physical
memory. It is possible that some implementation might be layered on top
of the C memory allocation facilities.
> It seems absurd to me. I don't understand why Ada should depend on a C
> standard library.
Some operating systems are very C-centric in their operating system calls,
and without direct experience I would say that Linux is likely one of them.
I have seen "portable" C programs which spend half of their lines of code
rolling their own version of facilities that are built into other operating
systems.
next prev parent reply other threads:[~2005-03-16 11:36 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 9:56 "new" word fabio de francesco
2005-03-16 10:30 ` Vinzent 'Gadget' Hoefler
2005-03-16 11:14 ` Adrian Knoth
2005-03-16 11:42 ` Vinzent 'Gadget' Hoefler
2005-03-16 12:09 ` Thomas Lotze
2005-03-16 13:17 ` fabio de francesco
2005-03-16 13:25 ` Vinzent 'Gadget' Hoefler
2005-03-16 13:40 ` fabio de francesco
2005-03-16 14:34 ` Vinzent 'Gadget' Hoefler
2005-03-16 13:01 ` fabio de francesco
2005-03-17 15:09 ` Lutz Donnerhacke
2005-03-16 13:49 ` Larry Kilgallen
2005-03-16 13:55 ` Florian Weimer
2005-03-17 14:38 ` Lutz Donnerhacke
2005-03-16 16:23 ` Robert A Duff
2005-03-16 11:07 ` Adrien Plisson
2005-03-16 11:36 ` Larry Kilgallen [this message]
2005-03-16 12:53 ` fabio de francesco
2005-03-16 13:10 ` Vinzent 'Gadget' Hoefler
2005-03-16 16:20 ` Robert A Duff
2005-03-18 4:10 ` Wes Groleau
2005-03-18 12:04 ` Larry Kilgallen
2005-03-18 14:05 ` Martin Krischik
2005-03-16 22:12 ` Randy Brukardt
2005-03-18 4:03 ` Wes Groleau
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox