home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / C128CPM / HITECHC.TXT < prev    next >
Encoding:
Text File  |  2019-04-13  |  5.0 KB  |  113 lines

  1.                  HI-TECH C 3.09 (CP/M-80) REVIEW
  2.                        By Steve Goldsmith
  3.                             07/19/93
  4. -------------------------------------------------------------------
  5.  
  6. Hi there,
  7.  
  8.      I have just finished up my first release of a ANSI C tool box
  9. of fast video routines for the C128's VDC.  I used the Freeware HI-
  10. TECH C compiler package I down loaded from GEnie.  I spent a week
  11. using this package and I would like to share a few observations
  12. with you.
  13.  
  14. I have 13 years (9 of it professional) of programming experience on
  15. various OS platforms including C64, C128, Apple ][, IBM PC
  16. (networks), IBM 4300, IBM AS/400, NCR Century 300, Wang VS, Qantel
  17. minis, etc.  I haven't had the pleasure of running a UNIX system
  18. though.  I have been using Object Pascal (the C++ of Pascal) the
  19. past 2 or 3 years and prefer it for MS DOS, Windows 3.x and DPMI
  20. programming.  I also have experience with 6502, Z80 and x86
  21. Assembler, BASIC, Report Generator and most other languages they
  22. make you take at college and use in the business world.  Just a
  23. little background, so you don't think I'm a Cyber Punk that plays
  24. video games all day and night.
  25.  
  26. Once in a while I take a break from the PC and AS/400 world and
  27. hack on my C128D in CP/M mode.  When I saw that there was a FREE C
  28. compiler I had to take a look at it even though I haven't used C
  29. before.  I knew one day I would have to learn C because most jobs
  30. require it instead of COBOL.  Since I'm an experienced programmer
  31. I know what I like in a development system no matter what language
  32. it is.  With that said let's take a closer look at HI-TECH C!
  33.  
  34. I'm not going to rate HI-TECH C (HTC) on a scale like so many PC
  35. rags.  I'm just going to tell you what I like and don't like about
  36. HTC.  I use Turbo Pascal 3.1 (TP3) for CP/M and I think it is still
  37. one of the best CP/M compilers around.  I will be comparing TP3 to
  38. HTC since most of the other CP/M compilers I've used are not full
  39. implementations of the language.
  40.  
  41. WHAT I LIKE ABOUT HI-TECH C 3.09
  42.  
  43. 1.   It's a complete ANSI C.  Compared to K and R or Small C only
  44.      compilers.  ANSI C makes non-hardware dependent code more
  45.      portable across various platforms.
  46.  
  47. 2.   Only one command needed to compile, assemble and link code.
  48.  
  49. 3.   Strong type checking.  A must for us die hard Pascal
  50.      programmers.  Helps prevent run time errors cause by type
  51.      mismatching.
  52.  
  53. 4.   Generates small fast code.  Doesn't require fixed size run
  54.      time library (RTL) like TP3.  Only links code that is used, so
  55.      there is no dead code linked in your .COM file.  TP3's RTL is
  56.      8K, so your .COM file will be at least 8K no matter what.
  57.  
  58. 5.   RTL source is provided to modify or learn from.
  59.  
  60. 6.   Gives you the option to generate .OBJect and .ASsembler
  61.      files without invoking the linker.
  62.  
  63. 7.   It's free!
  64.  
  65. WHAT I DON'T LIKE ABOUT HI-TECH C 3.09
  66.  
  67. 1.   It's quite slow.  I'm running a C128D with 800K and 360K
  68.      floppies.  I would recommend using a RAM disk or hard drive
  69.      for the .COM and work files.  Keep your source on a floppy. 
  70.      I was able to read two C language books while waiting for
  71.      compiles!  You could also use a CP/M-80 emulator on a PC for
  72.      faster compiles.  TP3 blows HTC away in this respect!
  73.  
  74. 2.   No integrated development environment (IDE) like TP3.  You'll
  75.      have to find a good text editor to maintain your C source
  76.      files.  I use the TP3 editor since it can execute HTC's
  77.      compiler and return you to edit your source.  It is also old
  78.      fashioned to just dump the compiler error messages to the
  79.      screen instead of putting it on the offending line in the
  80.      source code.  This sounds kind of picky, but Borland has been
  81.      doing it for 10 years!
  82.  
  83. 3.   The optimizer locks up when using in-line Assembler with the
  84.      #asm #endasm directives.  It compiles and runs fine until you
  85.      use the -O switch.  The optimizer just locks up in the same
  86.      place without warning!  At the end of the review I'll give you
  87.      the names of the source files, so you can take a look at this
  88.      problem.  Mabey I have a bad optimizer?
  89.  
  90. 4.   The manual has some weird codes embedded which have to be
  91.      removed before printing to a PC printer.  Is this in a word
  92.      processor format?
  93.  
  94. As you can see I don't have any major gripes about HTC other than
  95. the optimizer lock up.  I can recommend HTC for beginners as well
  96. as advanced users.  If you haven't used C before I would pick up a
  97. couple of books before trying to write anything of substance.  If
  98. you want to give HTC a try then download the following from GEnie's
  99. CP/M RT (m685;3):
  100.  
  101. FREEware C Compiler for HI-TECH Software!  See Z80V309.LZH,
  102. Z80DOC.LZH and LIBSRC.LZH in the Software Library.  Demo versions
  103. of their DOS-based cross compilers are also available!
  104.  
  105. Source to my C128 fast video module is the CP/M and Flagship RT
  106. (m625;3):
  107.  
  108. SGTOOL10.ARC
  109.  
  110. Steve Goldsmith
  111.  
  112. S.GOLDSMITH2 on GEnie
  113.