home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / pen / 761 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.4 KB  |  46 lines

  1. Newsgroups: comp.sys.pen
  2. Path: sparky!uunet!wupost!eclnews!usenet
  3. From: dale@manet.wustl.edu (Dale Frye)
  4. Subject: Re: Smallest PenPoint App (code size)
  5. Message-ID: <1993Jan4.171000.28365@wuecl.wustl.edu>
  6. Sender: usenet@wuecl.wustl.edu (News Administrator)
  7. Nntp-Posting-Host: degas
  8. Reply-To: dale@manet.wustl.edu
  9. Organization: Washington University, School of Engineering, St. Louis MO
  10. References: <1992Dec31.032315.22424@netcom.com>
  11. Date: Mon, 4 Jan 1993 17:10:00 GMT
  12. Lines: 32
  13.  
  14. In article <1992Dec31.032315.22424@netcom.com> cew@netcom.com (Clayton  
  15. Weimer) writes:
  16. > dale@manet.wustl.edu (Dale Frye) writes:
  17. > >In article <1heotpINNe0r@nigel.msen.com> ggolden@msen.com (Glenn  
  18. Golden)  
  19. > >EMPTYAPP EXE     11120 12-24-92   9:57a
  20. > Still seems large, was this compiled with DEBUG on?  I've had
  21. > apps below 5k, and they are useful too :-)
  22.  
  23. Yup, I forgot to turn on production mode. Here's the new stats.
  24.  
  25. EMPTYAPP EXE      1228 01-04-93  10:18a
  26.  
  27.  
  28. 1.2K sounds much nicer. For those who don't know put
  29.  
  30. MODE = production
  31.  
  32.  in you makefile to disable the debug mode. It also helps to use the Dbg()  
  33. macro to remove any debugging statements and code from production code. 
  34.  
  35. Dbg(Debugf("This is an error statement");)
  36. and
  37. Dbg( /* Waste time for debugging */ for (i=0;i<10000;i++);)
  38.  
  39. and yes there is no ; at the end of that line.
  40.  
  41. Dale Frye
  42. Washington University in St. Louis
  43.