From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,a03ae7f4e53958e1 X-Google-Attributes: gid10a146,public X-Google-Thread: fac41,a03ae7f4e53958e1 X-Google-Attributes: gidfac41,public X-Google-Thread: 1094ba,a03ae7f4e53958e1 X-Google-Attributes: gid1094ba,public X-Google-Thread: fa0ae,a03ae7f4e53958e1 X-Google-Attributes: gidfa0ae,public X-Google-Thread: 114809,a03ae7f4e53958e1 X-Google-Attributes: gid114809,public X-Google-Thread: 1014db,a03ae7f4e53958e1 X-Google-Attributes: gid1014db,public X-Google-Thread: 109fba,a03ae7f4e53958e1 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,8775b19e3c68a5dc X-Google-Attributes: gid103376,public From: bill@cafe.net (Kaz Kylheku) Subject: Re: Which language pays most 17457 -- C++ vs. Java? Date: 1997/12/22 Message-ID: <67l3dl$666$1@brie.direct.ca>#1/1 X-Deja-AN: 309265178 References: <199712121931.LAA25389@sirius.infonex.com> <67iipp$ktj$1@darla.visi.com> <882756127snz@genesis.demon.co.uk> Reply-To: kaz@cafe.net Organization: Internet Direct Newsgroups: comp.lang.fortran,comp.lang.c,comp.lang.c++,comp.lang.eiffel,comp.lang.java.programmer,comp.lang.smalltalk,comp.lang.perl.misc,comp.lang.ada,comp.edu Date: 1997-12-22T00:00:00+00:00 List-Id: In article <882756127snz@genesis.demon.co.uk>, Lawrence Kirby wrote: >In article <67iipp$ktj$1@darla.visi.com> > seebs@plethora.net "Peter Seebach" writes: > >>In article , >>William J. Leary Jr. wrote: >>>Not that I've ever noticed. I frequently use C compilers to target embedded >>>systems. >> >>Then you're using "freestanding environments", which are a separate language. >>The library is, indeed, part of the hosted environment form of C. > >Aren't the standard library identifiers with external linkage reserved >even in a freestandinhg environment? Yes they are! Absolutely! A freestanding implementation of C is allowed to provide as much or as little of the standard library. In any case, the C standard does not define any notion of a ``freestanding program''. In particular, it provides no interpretation for the meaning of such programs. For instance, a ``freestanding program'' might begin execution in a function called 'init'. But the C standard only provides an interpretation for programs that start in a function 'main' that returns int and takes either no arguments or exactly two arguments of type int and char ** respectively. A conforming implementation of C could well reject a program whose startup function is called init. Strictly speaking, such freestanding programs are not standard C; they are examples of a local adaptation of C.