Article View: comp.os.msdos.programmer
Article #1063Re: The smallest TSR contest
From: Denis Beauregard
Date: Sat, 29 Aug 1992 23:05
Date: Sat, 29 Aug 1992 23:05
47 lines
2779 bytes
2779 bytes
In article <AJcrvcgSo6@rkb.riga.lv> ilya@rkb.riga.lv writes: > >>The challenge : write a very small TSR program in a high level language. >>The languages : C/C++ versus Pascal (or anything else) (no INLINE nor #ASM) > > One thing is not quite clear: may I modify standard compiler > modules (say, by reassembling c0?.obj in Turbo C)? The program > itself therefore will not contain inline code. A good point! 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). However, I would count this as the same thing as inline statement. > > Moreover, I could develop my own tiny compiler aimed solely > at generating the most compact TSR programs. Do contest > regulations permit it? The same way, you could develop your own macros, eliminating some verification code, or changing some call into inline statements. The same way, this would be considered as inline statements. > > --------------------------------------------------------- > Ilya Ketris ilya@rkb.riga.lv Just for the funny aspect of this, I get an overview of what is a compiler complying to some specifications for testing. Ada is like that : once you wrote the compiler, it must perform some secret tests. Now, suppose you know what are those tests. Then, you would have to write a small program, identifying what is the program of the test is compiled, and then generating an object file already optimized in a very very short time. Obviously, that compiler can only compile the test programs, but will give the best results (smaller compilation time, best execution speed, smaller code), but it would not be an Ada compiler ;^) So, you can write your pseudo-C tiny compiler for the specific purpose of writting the smallest TSR, but this would not be a C compiler. -- \_\ 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:
<BtrpHu.FoB@ireq.hydro.qc.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beauregaReferences:
<BtHsIt.6F4@ireq.hydro.qc.ca> <AJcrvcgSo6@rkb.riga.lv>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: <BtrpHu.FoB@ireq.hydro.qc.ca> Date: 29 Aug 92 23:05:54 GMT References: <BtHsIt.6F4@ireq.hydro.qc.ca> <AJcrvcgSo6@rkb.riga.lv> Sender: news@ireq.hydro.qc.ca (Netnews Admin) Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada Lines: 47