🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1230

Re: The smallest TSR contest

#1230
From: Denis Beauregard
Date: Wed, 02 Sep 1992 16:54
49 lines
2680 bytes
In article <9224402.5239@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
>beaurega@ireq.hydro.qc.ca (Denis Beauregard) writes:
>
>[...]
>>One advantage of Pascal over C is that the Pascal is
>>embedded in the code and C is not (C must call standard library while
>>standard Pascal can expend more directly some statements like the
>>print (Fortran do the same).  
>
>This is not true.
>
>A C compiler may well expand calls to standard functions, like
>	printf("%s\n",s);
>with equivalent but more efficient code, eg.
>	puts(s);
>Indeed such compilers do exist, although they are not common.
>
>See the recent discussion on comp.lang.fortran.
>
>-- 
>Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
>This .signature virus is a self-referential statement that is true - but 
>you will only be able to consistently believe it if you copy it to your own
>.signature file!

I doubt this is "standard C" compiler.  The reason is that in C
you can redefine all functions.  Changing printf for puts means that
printf definition is frozen.

To remain standard, nobody should redefine the standard functions (i.e.
alter printf meaning), but the possibility exists.

Anyway, since this will improve the result of compilation, we have
to accept the existence of such not-standard process (or is it standard with
the inclusion of standard function names?).  

Final point, you talk about discussions about Fortran.  Fortran, like Pascal,
has reserved keywords that eases optimization, while C has a very small
number of reserved keywords.  If Borland wants to import optimization
a la Pascal in the C compiler to improve the product, we may also
expect the standard of C to evoluate (just like the Fortran 90 is a step
over Fortran 77 and Fortran 66) since Borland has the largest number of
C programmers in its marketshare.

-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
J   __>  Un Quebec renouvele dans une Amerique renovee
\_.-===                                                  Opinions ? Et pis non !
Technical Details
Message-ID: <BtyMyr.Lt2@ireq.hydro.qc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
References: <AJcrvcgSo6@rkb.riga.lv> <BtrpHu.FoB@ireq.hydro.qc.ca> <9224402.5239@mulga.cs.mu.OZ.AU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Newsgroups: comp.os.msdos.programmer
Subject: Re: The smallest TSR contest
Message-ID: <BtyMyr.Lt2@ireq.hydro.qc.ca>
Date: 2 Sep 92 16:54:26 GMT
References: <AJcrvcgSo6@rkb.riga.lv> <BtrpHu.FoB@ireq.hydro.qc.ca> <9224402.5239@mulga.cs.mu.OZ.AU>
Sender: news@ireq.hydro.qc.ca (Netnews Admin)
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
Lines: 49