home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6571.LZX / extras / ucc / READ.ME < prev    next >
Encoding:
Text File  |  1996-12-24  |  2.0 KB  |  74 lines

  1. Copyright (C) 1992-1993 Doug Walker, Cary, NC.  All Rights Reserved.
  2.  
  3. This program and source code is freely redistributable 
  4. for noncommercial purposes.  A fee may be charged to 
  5. recover distribution costs.  You may not distribute 
  6. changes to this program without the permission of the 
  7. author.
  8.  
  9. This software is provided as-is.  Use it at your own risk.
  10. =================================================
  11.  
  12. UCC V1.0 - a Unix-like front-end for SAS/C® Version 6
  13.  
  14. UCC forks the SC command with the options LINK and NOVERSION.
  15. It parses its command line and, based on the UNIX options below,
  16. modifies the behavior of SC:
  17.  
  18.    -c        ==> Adds NOLINK (overrides the LINK specified earlier)
  19.  
  20.    -O        ==> Adds OPTIMIZE
  21.  
  22.    -g        ==> Adds DEBUG=SF (Full symbolic debugging information)
  23.  
  24.    -I<dir>
  25.    -I <dir>  ==> Adds IDIR=<dir>
  26.  
  27.    -D<def>
  28.    -D <def>  ==> Adds DEF=<def>
  29.  
  30.    -P
  31.    -E        ==> Adds PPONLY
  32.  
  33.    -lm       ==> Adds MATH=S
  34.  
  35.    -o<name>
  36.    -o <name> ==> Adds PNAME=<name>
  37.  
  38.    -v        ==> Adds VERBOSE VERSION; also prints the SC command line used
  39.  
  40.    -w        ==> Adds NOWARN
  41.  
  42. Anything that doesn't start with a dash and is not a parameter to an
  43. option that starts with a dash is passed through to SC "as is".  This
  44. means you can specify any SC options you like on the UCC command line.
  45.  
  46. SC, when invoked, will read the SCOPTIONS file just like normal, so you
  47. can use SCOPTS to set up your default options.
  48.  
  49. UCC does *not* compile by default to a file called "a.out" like UNIX
  50. compilers do.  I think this is stupid, so I didn't implement it.  If 
  51. you really want this, specify -oa.out or put PNAME=a.out in your 
  52. SCOPTIONS file.
  53.  
  54. Examples:
  55.  
  56.    Compile and link "hello.c" with debugging information:
  57.    
  58.       ucc -g hello.c
  59.  
  60.    Compile but do not link the same file:
  61.    
  62.       ucc -c -g hello.c
  63.  
  64.    Compile and link "hello.c" and produce a linker cross-reference map:
  65.  
  66.       ucc -g hello.c map mapxref
  67.  
  68.    Do the same as the above command, but use a Global Symbol Table:
  69.  
  70.       ucc -g hello.c map mapxref gst hello.gst
  71.  
  72.  
  73. --Doug Walker
  74.   02OCT92