Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: firewind@aurdev.com
Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA *
Date: 1998/08/31	[thread overview]
Message-ID: <KKGG1.321$Y%.3989168@news.goodnet.com> (raw)
In-Reply-To: 35EA0E22.C59E9476@videotron.ca

In comp.lang.c JF Mezei <jfmezei.spamnot@videotron.ca> wrote:

> I suggest you check Kernigham and Ritchie, 1978 edition. 

1978 edition? How delightfully ancient! Surely you know that two standards
regulating C have been passed since then, with a third on the way? K&R1 (nor
K&R2) is representative of the language at this time. In fact, K&R1 -never-
was representative of the state of C.

> Appendix A (starts at page 214)
> Or better yet, the official list of reserved words at page 180 (again
> appendix A).

For those of us following along in the newer edition, the list referred to
can be found on page 192. The section is A2.4, Keywords, and reads as follows:

	The following identifiers are reserved *for use as keywords*, and may
	not be used otherwise:

	[list of 32 keywords ommitted]

The emphasis in the above quote is mine, not K&R. Perhaps I have the wrong
book, but I am unable to find the phrase 'reserved words' in that section.
The purpose of the section is -merely- to list the 32 keywords that are
-always- reserved. Other identifiers are reserved in other contexts, and the
reference you provide, quoted above, does NOT refute this.

> Nop, because the compiler does not know to what library the object module will
> eventually be linked with. Case in point: on a VAX-VMS, you can link against
> the VAXCRTL or DECCRTL libraries, which, while similar, have significanto
> differences.

Linkers? Libraries? What are those? Object modules? Huh?

You back up your assertion that the compiler -may not- 'know' about 'printf()'
by providing an example implimentation where it does not. I'm curious, have
you ever read the standard? Or even glanced at it? We're not talking about
what can or what does happen. We are talking about what -may- happen, and
the fact is that the standard allows for an implimentation where -no- linker
exists, and code for standard functions is directly inserted by the compiler.

> Quoting from K&R, page 1:

> "Finally, C itself provides no input-output facilities: there are no READ or
> WRITE statements, and no wired-in file access methods. All these higher-
> level mechanisms *MUST* be provided by explicitely called functions."

> (emphasis on MUST is mine).

> By that definition alone, a compiler which assumes a certain behaviour for
> printf and translates it to inline code instead of a call to the printf
> routine in a library would not adhere to the C standards. Must be a 
> Microsoft compiler.

Sorry, incorrect. Besides the fact that, once again, K&R != ISO, your reading
of the quoted passage is fatally flawed. It reads 'must be provided by
*explicitly* called functions,' (emphasis mine) not '*external* called func-
tions.' -Nowhere- does the passage you quote prohibit insertion of code by
the compiler.

> Disagree. If you do not have a #include that defines the macro, the use of
> your "keyword" will result in a function call to be resolved by the linker. 

Again: what linker?

-- 
(cfgwgid)



  reply	other threads:[~1998-08-31  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                         ` 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 [this message]
1998-08-31  4:00                             ` Michael Rubenstein
     [not found]                             ` <6scur7$qtk@bgtnsc02.wo <35EA0E22.C59E9476@videotron.ca>
1998-08-31  4:00                               ` Will Rose
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-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
1998-09-07  4:00                               ` Peter da Silva
1998-09-07  4:00                                 ` Jordan Henderson
1998-09-08  4:00                                   ` JF Mezei
1998-09-08  4:00                                   ` Peter da Silva
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                                   ` 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                                 ` 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               ` Thor Lancelot Simon
1998-08-28  4:00                 ` TERENCE MURPHY
1998-08-28  4:00                   ` Greg Thomas
1998-08-29  4:00                     ` mathog
1998-09-01  4:00                       ` Greg Thomas
1998-08-28  4:00                   ` Monty Brandenberg
1998-08-28  4:00                   ` George Cornelius
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-27  4:00               ` Peter da Silva
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