home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / c68k_src / read.me < prev    next >
Encoding:
Text File  |  1987-12-10  |  2.4 KB  |  62 lines

  1.   This archive contains a modified version of Matthew Brandt's C68K
  2. compiler.  Where Brandt's compiler generated UNIX assembler code, this version
  3. generates code compatible with MASM, Motorola's resident Assembler.
  4. The following is the copyright notice which appeared in the original version:
  5. /*
  6.  *    68000 C compiler
  7.  *
  8.  *    Copyright 1984, 1985, 1986 Matthew Brandt.
  9.  *  all commercial rights reserved.
  10.  *
  11.  *    This compiler is intended as an instructive tool for personal use. Any
  12.  *    use for profit without the written consent of the author is prohibited.
  13.  *
  14.  *    This compiler may be distributed freely for non-commercial use as long
  15.  *    as this notice stays intact. Please forward any enhancements or question
  16. s
  17.  *    to:
  18.  *
  19.  *        Matthew Brandt
  20.  *        Box 920337
  21.  *        Norcross, Ga 30092
  22.  */
  23.  
  24.   I performed the original modifications using VMS C, and have therefore
  25. had to edit each module to stick a <> around the stdio.h #include statements.
  26. I have not tested this compiler on an IBM compatible.  Note that the original
  27. documentation for the compiler states that there will be compilation warnings
  28. when building the compiler.  This is still true, due to some mixed mode
  29. int vs pointer assignments.  Take note large memory model users.
  30.  
  31. Bugs/restrictions in the original have not been fixed, these include:
  32. 1. Errors involving char parameters to functions
  33. 2. Limits on the size of functions due to the fact that a function is
  34.    completely parsed before code is generated.
  35. 3. No support for floats, however float declarations do not produce errors.
  36. 4. Preprocessor support is limited to #include and symbol replacement #define
  37.    directives, that is #define's without arguments.
  38. 5. There is no real run time library supplied.  This includes a lack of the
  39.    'standard' useful functions such as printf, scanf and so on.
  40.  
  41. To rebuild:
  42.   Compile all .C files except sieve.c which is a test program.
  43.   Link these together with the run time library of your C compiler.
  44.   Name the output file C68M.  Assemble LIB.SA with the Motorola 68000
  45.   assembler.
  46.  
  47. To use:
  48. Type:
  49.    C68M  file.c
  50.  
  51. Where file.c is the name of the file you want to compile.
  52. The file file.lis and file.sa will be produced. The .lis file is a listing,
  53. and the .sa file is valid assembler input for MASM.  It should be linked
  54. with MLINK and whatever other modules you wish to include.
  55.  
  56. Ron Fox
  57. NSCL
  58. Michigan State University
  59. East Lansing, MI 48824-1321
  60. or
  61. rfoxmich@BYTECOSY
  62.