From: "Richard Stamp" <richard.stamp@acm.org>
Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA *
Date: 1998/09/07 [thread overview]
Message-ID: <905244797.23783.0.nnrp-09.9e98ce80@news.demon.co.uk> (raw)
In-Reply-To: 6t18af$p83$1@Starbase.NeoSoft.COM
Jordan Henderson wrote in message <6t18af$p83$1@Starbase.NeoSoft.COM>...
>I still don't have the Standard document at hand, but does it clearly
>say that non-hosted systems cannot have command line arguments?
The opposite of "hosted" is "freestanding".
It doesn't say "a freestanding implementation shall not provide a method to
obtain command-line arguments", if that's what you mean, but equally it
doesn't say that such a method _must_ be provided. A freestanding
implementation doesn't even have to start the program by calling main().
>What exactly is the difference between hosted and non-hosted environments?
A freestanding implementation, as mentioned above, calls an implementation
defined funtion (not necessarily main) to start the program. If the program
terminates, the effect is implementation-defined (in embedded systems it may
not be expected that the program ever terminate, of course).
Most significantly, freestanding implementations don't need to have the
standard library -- "any library facilities available to a freestanding
program are implementation-defined". Similarly, they only have to provide
the headers float.h, limits.h, stdarg.h and stddef.h.
>Even if command line arguments are not supported in non-hosted
>environments, I have the string constants to fall back on for my claim
>that nul-terminated strings are a "feature" of the language.
Right, but of course all the string-handling functions (strlen etc.) are
off-limits.
>So, if you
>attempt to draw the line at hosted/non-hosted => core/extensions you still
>have to allow nul-terminated strings in as part of the core and not just a
>"convention".
This is getting alarmingly close to the notorious "is the library a part of
the language" bust-up we had in comp.lang.c a while ago -- around last
Christmas, IIRC. It's extremely hard to draw a line which will satisfy most
people, or indeed anyone other than yourself (and believe me, some of us
tried). The only line which seems to have widespread acceptance is
"standard or non-standard" and that's only because we have a 200-odd page
document to define it.
Cheers,
Richard
--
Richard Stamp, Bournemouth, UK
next prev parent reply other threads:[~1998-09-07 4:00 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0095000017115526000002L062*@MHS>
[not found] ` <35E04DF1.1911@world.std.com>
[not found] ` <35E09E76.6773@earthlink.net>
1998-08-23 4:00 ` Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Terry C. Shannon
1998-08-23 4:00 ` Glenn C. Everhart
1998-08-24 4:00 ` Paul Sture
1998-08-25 4:00 ` Gregg E Economou
1998-08-25 4:00 ` Jordan Henderson
1998-08-26 4:00 ` Bob Koehler
[not found] ` <6s910k$2bo$1@Starbase.NeoSoft.COM>
1998-08-29 4:00 ` Gregg E Economou
1998-08-30 4:00 ` Jay Maynard
[not found] ` <35e833be.0@news.wizvax.net>
1998-08-29 4:00 ` Jordan Henderson
1998-08-30 4:00 ` John Wilson
1998-08-30 4:00 ` JF Mezei
1998-08-30 4:00 ` Chris Torek
1998-08-31 4:00 ` Gregg E Economou
1998-08-31 4:00 ` Chris Torek
1998-08-30 4:00 ` Lawrence Kirby
1998-08-30 4:00 ` JF Mezei
1998-08-30 4:00 ` Martin Ambuhl
1998-08-31 4:00 ` Craig Franck
1998-08-30 4:00 ` JF Mezei
1998-08-31 4:00 ` firewind
[not found] ` <6scur7$qtk@bgtnsc02.wo <35EA0E22.C59E9476@videotron.ca>
1998-08-31 4:00 ` Will Rose
1998-08-31 4:00 ` Michael Rubenstein
1998-09-04 4:00 ` Thor Lancelot Simon
1998-08-30 4:00 ` Gregg E Economou
1998-08-30 4:00 ` K&R fight over ketchup (was: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA ) Clint Comes
1998-08-31 4:00 ` Bob Koehler
1998-09-05 4:00 ` Gregg E Economou
1998-09-05 4:00 ` Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Peter da Silva
1998-09-05 4:00 ` Jordan Henderson
1998-09-07 4:00 ` Peter da Silva
1998-09-07 4:00 ` Jordan Henderson
1998-09-07 4:00 ` Dan Pop
1998-09-07 4:00 ` Richard Stamp [this message]
1998-09-07 4:00 ` Peter da Silva
1998-09-07 4:00 ` Jordan Henderson
1998-09-08 4:00 ` Peter da Silva
[not found] ` <6t2im5$mke@espresso.cafe.net>
1998-09-08 4:00 ` Peter da Silva
1998-09-08 4:00 ` Peter da Silva
1998-09-08 4:00 ` Tim Shoppa
[not found] ` <6t4cui$hfu@espresso.cafe.net>
1998-09-09 4:00 ` Tim Shoppa
1998-09-08 4:00 ` JF Mezei
1998-09-09 4:00 ` Dan Pop
1998-09-09 4:00 ` Peter da Silva
1998-09-08 4:00 ` JF Mezei
1998-09-08 4:00 ` Dan Pop
1998-09-08 4:00 ` Peter da Silva
1998-09-08 4:00 ` Dan Pop
1998-08-25 4:00 ` John Wilson
1998-08-26 4:00 ` Gregg E Economou
1998-08-27 4:00 ` John Wilson
1998-08-26 4:00 ` Bob Koehler
1998-08-27 4:00 ` Peter da Silva
1998-08-31 4:00 ` Boris
1998-08-27 4:00 ` Thor Lancelot Simon
1998-08-28 4:00 ` TERENCE MURPHY
1998-08-28 4:00 ` George Cornelius
1998-08-28 4:00 ` Monty Brandenberg
1998-08-28 4:00 ` Greg Thomas
1998-08-29 4:00 ` mathog
1998-09-01 4:00 ` Greg Thomas
1998-08-29 4:00 ` Gregg E Economou
1998-09-05 4:00 ` Peter da Silva
1998-08-28 4:00 ` Bob Koehler
1998-09-05 4:00 ` Peter da Silva
1998-09-08 4:00 ` Carl Perkins
1998-08-31 4:00 ` Boris
1998-08-26 4:00 ` Paul Sture
1998-08-27 4:00 ` Gregg E Economou
1998-08-28 4:00 ` Paul Sture
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox