home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / sphinx / examples / simple / hello2.c__ < prev    next >
Encoding:
Text File  |  1993-04-30  |  757 b   |  23 lines

  1. /*
  2.      SPHINX C-- hello world example program MARK II
  3.      This demonstrates how code size can be cut to the minimum by the use
  4.      of compiler options.  This program's run file size is 30 bytes less
  5.      than HELLO.C--, but will not minimize its allocated memory at run time.
  6.      Run file size: 41 bytes.
  7. */
  8.  
  9. ? resize FALSE     // do not resize programs memory block
  10.  
  11. ? jumptomain NONE  // no need for a jump at the beginning of the code
  12.                    // to get to the main(), for there is no global data
  13.                    // to jump over.
  14.  
  15. ? include "WRITE.H--"
  16.  
  17. main ()              /* execution always starts at main () */
  18. {
  19. WRITESTR("Hello World!\n");  /* write the string to the screen */
  20. }
  21.  
  22.     
  23. /* end of HELLO2.C-- */