From: walker@twix.unx.sas.com (Doug Walker)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Manx Flags?
Keywords: c manx lattice makefile
Date: 26 Jan 93 15:08:14 GMT
Organization: SAS Institute Inc.
Originator: walker@twix.unx.sas.com


In article <1993Jan26.013631.11639@monu6.cc.monash.edu.au>, spotty@yoyo.cc.monash.edu.au (Andrew Harvey) writes:
|> Could someone post a brief list of the Manx C compiler's command line
|> flags. I need them to convert a makefile to Lattice.

Actually, I found an online copy of the 5.10 customer service guide.
Here's Appendix C.

Khristi Tomlinson in our tech support department has a more detailed
document that she is preparing;  if you would like to review a copy
of this (experienced MANX->SAS converters, listen up!) please contact
her through our normal tech support channels.  (919)677-8009, or
by mail.

Here's the Appendix from the customer service guide.

		Appendix C - Converting Aztec C to SAS/C
		========================================

This appendix contains guidelines for converting Aztec C programs to SAS/C.
If you have any comments or suggestions on this topic, please contact
Technical Support.

		HEADERS
		-------

A common Aztec C header file, functions.h, is equivalent to the SAS/C
header file, proto/all.h.

		OPTIONS
		-------

NOTE:	The equivalent SAS/C options may have effects in addition to those
	of the Aztec C option.	Please check the SAS/C manual for a
	complete explanation of the options selected.


Aztec C 	SAS/C		Comments
----------------------------------------------------------------------------
-3
-5
-a
-at
-bd		default 	-v turns off stack checking.
-bs		-d --> -d5	SAS/C has 5 levels of debug information
				instead of 1.
-c2		-m2
-d		-dx=y		x is the pre-processor symbol and y is the
				definition.
-fa		-fi		You must also use the -Lm option to
				automatically link with the math
				libraries.
-ff		-ff		You must also use the -Lm option to
				automatically link with the math
				libraries.
-fm		-fl		You must also use the -Lm option to
				automatically link with the math
				libraries.
-f8		-f8		You must also use the -Lm option to
				automatically link with the math
				libraries.
-hi		-Hxxx		xxx is the name of the pre-compiled header
				file.
-ho		-ph		You must also use the -oxxx option to
				specify the name of the object file, xxx,
				which will contain the pre-compiled header
				output.
-i		-ixxx		xxx is the include directory, including the
				path if necessary.
-k
-ma		default
-mb
-mc		-r0
-md		-b0
-me
-mm		approx. -cs	-cs forces the compiler to have only one
				copy of identical strings.  These strings
				are placed in the code segment.
-ms		default
-o		-oxxx		xxx is the name of the output file.
-pa		-ca		-ca requires ANSI compatibility.
-pb
-pc		default
-pe
-pl		default
-po		-co		-co uses the SAS/C old style
				preprocessor.
-pp		-cu
-ps		-w
-pt				SAS/C does not support trigraphs with the
				5.10 release.
-pu
-qa		-pp
-qf		-E		-E invokes the editor upon finding an
				error.
-qp		-pe
-qq		-.		-. suppresses the execution messages.
-qs		-ps
-qv
-r4
-sa		default 	This option is always on in SAS/C.
-sb				This is not an option in SAS/C.  Equivalent
				effect is produced by including string.h in
				the source.
-sf		-O		-O invokes the global optimizer.
-sm				This is not an option in SAS/C.  Equivalent
				effect is produced by including appropriate
				header files.
-sn		default 	This option is always on in SAS/C.
-so		-O		This option incorporates various
				optimization options.  The SAS/C option -O
				invokes the SAS/C Global Optimizer
-sp		default 	-mc turns this option off.
-sr		-O		This effect is produced by GO, the global
				optimizer.
-ss		-cs
-su		default
-wa		default
-wd
-we		-j*e		-j*e turns all warnings into errors. -j<n>e
				turns a specific warning message numbered
				<n> into an error message.
-wl		default

-wn		-j<n>w		This options turns an error numbered <n>
				into a warning.
-wo		default
-wp		-cf
-wq		-E<fn>		-E puts you into the editor when finding an
				error during compilation, and places all
				error messages generated into the file
				<fn>.  <fn> is 'RAM:lc.err.out' by default.
-wr		default
-ws		-j*w
-wu		default

-ww		-q<n>w		This option tells the compiler to quit
				compilation after <n> warnings.
-- 
  *****
=*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
 *|. o.| ||                                          1200/2400/9600 Dual
  | o  |//     For all you do, this bug's for you!
  ====== 
usenet: walker@unx.sas.com                            bix: djwalker 
Any opinions expressed are mine, not those of SAS Institute, Inc.
Newsgroups: comp.sys.amiga.programmer