home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 191_01 / porting.doc < prev    next >
Text File  |  1986-07-10  |  2KB  |  32 lines

  1.                    Notes on Porting CLINK
  2.                      Phillip L. Emerson
  3.                  Cleveland State University
  4.  
  5.     File CLINK80.C is the original C/80 program compilable with
  6.     Software Toolworks C/80 for 8080 and Z-80 machines using
  7.     CP/M or Heath HDOS.
  8.  
  9.     File CLINK.C is the same program with some minor changes
  10.     that make it compilable by Mix C.  This version should be
  11.     fairly easy to port to other compilers.  Very
  12.     likely, some #defines would have to be changed, depending
  13.     on what is and is not defined in the stdio file.  The
  14.     /*$SIGNEXT*/ is a parameter setting for Mix C, telling it to
  15.     do sign extension on converting chars to ints.  The /*$ZERO*/
  16.     is a parameter setting for Mix C telling it to zero memory
  17.     allocated by calloc().  Compilers which do not and can not
  18.     be made to do these two things will not produce correct
  19.     results.  The CLINK program would require extensive changes.
  20.  
  21.     I just (7-10-86) compiled the 5-31-86 version (file CLINK.C)
  22.     with Software Toolworks MS-DOS version of C. I only had to
  23.     change the #include "stdio" to #include "a:stdio.h".
  24.  
  25.     We at Cleveland State University now have a C compiler for
  26.     our central IBM mainframe system.  I have not tried it yet.  If it
  27.     uses EBCDIC instead of ASCII, that will mean trouble for
  28.     a lot of programs, including CLINK which assumes ASCII in
  29.     several places.  The EBCDIC alphabet is interrupted by some
  30.     non-alphabetical characters somewhere between A and Z.
  31.     The numerals are ok though.
  32.