Xref: utzoo comp.object:3084 comp.misc:12029 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!tkou02.enet.dec.com!jit345!diamond From: diamond@jit345.swstokyo.dec.com (Norman Diamond) Newsgroups: comp.object,comp.misc Subject: Re: C as a replacement for assembler (Re: Documenting OO Systems) Message-ID: <1991Apr9.062846.13636@tkou02.enet.dec.com> Date: 9 Apr 91 06:28:46 GMT References: <20106@alice.att.com> <1991Mar26.191259.14470@i88.isc.com> <27F4D4BE.716@tct.uucp> <1991Apr2.175756.12586@visix.com> <1574@acf5.NYU.EDU> <1576@acf5.NYU <4o Sender: usenet@tkou02.enet.dec.com (USENET News System) Reply-To: diamond@jit345.enet@tkou02.enet.dec.com (Norman Diamond) Followup-To: comp.misc Organization: Digital Equipment Corporation Japan , Tokyo Lines: 22 In article <4o5G2erk1@cs.psu.edu> schwartz@groucho.cs.psu.edu (Scott Schwartz) writes: >In article <1576@acf5.NYU.EDU> sabbagh@acf5.NYU.EDU (sabbagh) writes: > Finally, I want to point out that the invention of C++, Eiffel and a > number of other languages have pointed out the true value > of C: as a replacement to assembly language! >The problem with compiling to C is that certain things are impossible >to express properly and/or safely. For example, modula 3 has >difficulty with garbage collection when the C compiler's optimizer >decides to rearrange or elide code. Indeed, the C compiler users and vendors and standardizing committees forgot the original purpose of C. In order to use C as originally intended, as a replacement for assembly language, it is necessary to take these steps: (1) Use only a subset of the C language; (2) Do the optimizations yourself (or in your high-level language compiler); (3) Use an old C compiler or disable optimizations in your C compiler. Follow-ups to comp.misc. -- Norman Diamond diamond@tkov50.enet.dec.com If this were the company's opinion, I wouldn't be allowed to post it.