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

  1. Path: sparky!uunet!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: Smallest TSR (was Re: Why can't I hook INT 21h???)
  5. Message-ID: <BtMG1E.A6D@ireq.hydro.qc.ca>
  6. Date: 27 Aug 92 02:53:38 GMT
  7. References: <1992Aug21.175406.3881@alw.nih.gov> <BtCwo7.C1o.2@cs.cmu.edu> <19866@plains.NoDak.edu>
  8. Sender: news@ireq.hydro.qc.ca (Netnews Admin)
  9. Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
  10. Lines: 31
  11.  
  12. In article <19866@plains.NoDak.edu> person@plains.NoDak.edu (Brett G Person ) writes:
  13. >Can I use in-line assembly when I do this? :-) 
  14. >C does have it's place, but for bare-bones control over the hardware I
  15. >
  16.  
  17. I know that C and C++ are great languages.  I spend days to program in
  18. C++.  The idea of a HLL _only_ smallest TSR is just to demonstrate that
  19. there is a limit, at least in size, to what you could do in C or Pascal
  20. (I while I don't use Pascal, some do).
  21.  
  22. But, from first example of a small TSR we got, the program was heavily
  23. using inline or assembly code using particularities of C to make it
  24. easier to program in assembly than direct assembly.  However, this is
  25. ASM, not HLL (high level language).  In other words, it is curious
  26. to need to use the lower level language to get the more (or the less
  27. in space occupied) from a higher level language (or isn't it natural :
  28. the more you know, the more you can do).
  29.  
  30. Indeed, we could have 3 classes : pure ASM, pure HLL, and mixed.
  31. Probably pure ASM will be the lower, mixed next, and pure HLL the
  32. biggest.  Knowing the PSP is such that you need some lost space,
  33. I have not yet seen an example using the environment space to still
  34. use less memory!  Perhaps, this would be reliable after checking
  35. all the DOS memory structure to be sure this environment is at the right
  36. place.
  37.  
  38. -- 
  39.   \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
  40.  /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
  41. J   __>  Vient de paraitre : Andre Jarret et ses Ancetres
  42. \_.-===  En vente par l'auteur                      Opinions ? Et pis non !
  43.