Deutsch   English   Français   Italiano  
<87h669q7j8.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: What is wrong with malloc?
Date: Wed, 08 Jan 2025 14:12:43 -0800
Organization: None to speak of
Lines: 29
Message-ID: <87h669q7j8.fsf@nosuchdomain.example.com>
References: <vljvh3$27msl$1@dont-email.me> <vlle1n$2n1b0$1@dont-email.me>
	<vlm2tg$2dkpd$3@dont-email.me> <vlm8gd$2rfbl$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 08 Jan 2025 23:12:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="78dde0aa8fcfd62296c6657e38e15b03";
	logging-data="3132812"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19fY1Y1ZGS4fPPyAYTu9np6"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:przODY9tNALtCt7gJgnbdwnp7c8=
	sha1:MbGE5Fqgii8Ztjy+eVDDEa1IdL0=
Bytes: 2466

David Brown <david.brown@hesbynett.no> writes:
[...]
> There are basically two classes of small embedded devices - those that
> are usually programmed with gcc (and sometimes clang, and occasionally
> vastly expensive commercial tools), and those that are programmed
> using non-standard, limited and often expensive sort-of-C compilers.
> For people using gcc, clang, Green Hills, Code Warrior, or other
> quality tools on a 16-bit or 32-bit microcontroller, C99 is not a
> problem.  C23 is not a problem for the most popular toolchain for the
> most popular microcontroller core.
[...]

It's also worth mentioning that the standard specifies two kinds of
implementations, "hosted" and "freestanding".

A hosted implementation must provide the entire standard library (except
for parts that are explicitly optional).  The program entry point is
"main".  Larger embedded systems (for example, Linux-based systems)
often have "hosted" implementations.

In a freestanding implementation, most of the standard library need not
be provided.  Library facilities are implementation-defined, as is the
program entry point.  Freestanding implementations generally target
systems with no operating system.  There might not be a malloc()
function.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */