home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8876 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  2.7 KB

  1. Path: sparky!uunet!utcsri!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
  2. From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: The smallest TSR contest
  5. Message-ID: <BtrpHu.FoB@ireq.hydro.qc.ca>
  6. Date: 29 Aug 92 23:05:54 GMT
  7. References: <BtHsIt.6F4@ireq.hydro.qc.ca> <AJcrvcgSo6@rkb.riga.lv>
  8. Sender: news@ireq.hydro.qc.ca (Netnews Admin)
  9. Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
  10. Lines: 47
  11.  
  12. In article <AJcrvcgSo6@rkb.riga.lv> ilya@rkb.riga.lv writes:
  13. >
  14. >>The challenge : write a very small TSR program in a high level language.
  15. >>The languages : C/C++ versus Pascal (or anything else) (no INLINE nor #ASM)
  16. >
  17. >       One thing is not quite clear: may I modify standard compiler
  18. >       modules (say, by reassembling c0?.obj in Turbo C)? The program
  19. >       itself therefore will not contain inline code.
  20.  
  21. A good point!  One advantage of Pascal over C is that the Pascal is
  22. embedded in the code and C is not (C must call standard library while
  23. standard Pascal can expend more directly some statements like the
  24. print (Fortran do the same).  However, I would count this as the same thing
  25. as inline statement.
  26.  
  27. >
  28. >       Moreover, I could develop my own tiny compiler aimed solely
  29. >       at generating the most compact TSR programs. Do contest
  30. >       regulations permit it?
  31.  
  32. The same way, you could develop your own macros, eliminating some
  33. verification code, or changing some call into inline statements.
  34. The same way, this would be considered as inline statements.
  35.  
  36. >
  37. >       ---------------------------------------------------------
  38. >       Ilya Ketris                              ilya@rkb.riga.lv
  39.  
  40. Just for the funny aspect of this, I get an overview of what is a
  41. compiler complying to some specifications for testing.  Ada is like
  42. that : once you wrote the compiler, it must perform some secret tests.
  43. Now, suppose you know what are those tests.  Then, you would have to 
  44. write a small program, identifying what is the program of the test
  45. is compiled, and then generating an object file already optimized
  46. in a very very short time.  Obviously, that compiler can only compile
  47. the test programs, but will give the best results (smaller compilation
  48. time, best execution speed, smaller code), but it would not be an Ada
  49. compiler ;^)
  50.  
  51. So, you can write your pseudo-C tiny compiler for the specific purpose
  52. of writting the smallest TSR, but this would not be a C compiler.
  53.  
  54. -- 
  55.   \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
  56.  /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
  57. J   __>  Un Quebec renouvele dans une Amerique renovee
  58. \_.-===                                                  Opinions ? Et pis non !
  59.