Deutsch English Français Italiano |
<d846ca1b9b2369678958c0806d8c4628@www.novabbs.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!newsfeed.bofh.team!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: mitchalsup@aol.com (MitchAlsup1) Newsgroups: comp.arch Subject: Re: C and turtles, 80286 protected mode Date: Wed, 16 Oct 2024 02:48:39 +0000 Organization: Rocksolid Light Message-ID: <d846ca1b9b2369678958c0806d8c4628@www.novabbs.org> References: <2024Oct6.150415@mips.complang.tuwien.ac.at> <3f2cb127c8d5dc2381fc80631a495e3e@www.novabbs.org> <8HBPO.471560$_o_3.464389@fx17.iad> <d8cffb389b3fd055ee70e87da9a3403a@www.novabbs.org> <ven3mo$11b4$1@gal.iecc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="2229996"; mail-complaints-to="usenet@i2pn2.org"; posting-account="o5SwNDfMfYu6Mv4wwLiW6e/jbA93UAdzFodw5PEa6eU"; User-Agent: Rocksolid Light X-Rslight-Posting-User: cb29269328a20fe5719ed6a1c397e21f651bda71 X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Site: $2y$10$9x9AF/oZdMGf4Ol59uL.pOJ91Vwln6j7br/qS67MxUjmQL6aVaE62 Bytes: 1852 Lines: 15 On Wed, 16 Oct 2024 1:08:40 +0000, John Levine wrote: > According to MitchAlsup1 <mitchalsup@aol.com>: >>The paragraaph with 3 >'s indicates malloc() cannot be written >>in std. C. It used to be written in std. K&R C. I am not asking >>if it is still in the std libraries, I am asking what happened >>to make it impossible to write malloc() in std. C ?!? > > It's easy enough to write malloc() in standard C if your flavor of the > standard includes a way to ask the operating system for heap space. > Back in the old days it was sbrk(). Now it's mmap(MAP_ANON). > > But I would be quite surprised if either of those ever made it into > any version of standard C. sbrk() was in the std. library on PDP-11/70 that I used 1982.