Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #62887

Re: About freestanding C

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c
Subject Re: About freestanding C
Date 2015-06-01 08:48 +1200
Message-ID <ct1adqFrf5eU1@mid.individual.net> (permalink)
References <c85af478-5e21-456f-9ac6-c2a054bea9da@googlegroups.com>

Show all headers | View raw


David Kleinecke wrote:
> Many people are unaware of it but C comes in two forms. According to
> clause 4 of the C90 standard (and, I assume, all the  later versions):
>
> The two forms of conforming implementation are hosted and freestanding.
> A conforming hosted implementation shall accept any strictly conforming
> program. A conforming freestanding implementation shall accept any
> strictly conforming program in which the use of the features in the
> library clause (clause 7) is confined to the contents of the standard
> headers <float.h>, <limits.h>, <stdarg.h> and <stddef.h>. (4)

The list of freestanding headers is expanded in the current standard.

> I do not know whether the standard means by the second sentence in
> 5.1.2.1 that the reserved identifiers of 7.1.3 are not reserved in a
> freestanding C implementation.

The sentence "There are otherwise no reserved external identifiers." 
does not appear in the current standard.

-- 
Ian Collins

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

About freestanding C David Kleinecke <dkleinecke@gmail.com> - 2015-05-31 12:27 -0700
  Re: About freestanding C Ian Collins <ian-news@hotmail.com> - 2015-06-01 08:48 +1200
  Re: About freestanding C Keith Thompson <kst-u@mib.org> - 2015-05-31 14:14 -0700
    Re: About freestanding C Philip Lantz <prl@canterey.us> - 2015-05-31 21:03 -0700
      Re: About freestanding C Keith Thompson <kst-u@mib.org> - 2015-05-31 23:50 -0700

csiph-web