From: barrett@astro.cs.umass.edu (Daniel Barrett)
Newsgroups: comp.sys.amiga.programmer
Subject: Re: Manx Flags?
Keywords: c manx lattice makefile
Date: 26 Jan 93 03:17:02 GMT
Organization: BLAZEMONGER INCORPORATED

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.

From: utoddl@next1.oit.unc.edu (Todd M. Lewis)
Newsgroups: comp.sys.amiga.programmer
Subject: Aztec C compiler options (long)
Date: 10 Jun 92 20:03:01 GMT

If you find any errors, discrepancies, or omitions in these lists 
please send corrections to me, Todd M. Lewis, at utoddl@next1.oit.unc.edu.

================Manx C 5.2a compiler options================

-3        Interpret options that follow according to 3.6
          rules.

-5        Interpret options that follow according to 5.0
          rules.

-a        Causes the compiler not to start the assembler
          after compile.

-at       Like -a, but includes C source statements as
          comments in .asm.

-bd       Enables Stack depth checking.

-bs       Produces sdb debugging information.

-c2       Produces 68020 code.

-d        Defines a preprocessor symbol.

-fa       IEEE floats

-ff       Motorola FFP

-fm       Manx IEEE (DEFAULT ON!)

-f8       68881 floats

-hi       reads pre-compiler header files.

-ho       writes compiler symbol table.

-i        Specifies path for include files.

-k        follow K&R (UNIX version 7) standard.

-ma       Forces alignment of short and long data items.
          (DEFAULT ON!)

-mb       Generate public .begin statement.  Turn off for
          drivers.

-mc       Large code model.

-md       Large data model.

-me       Align strings on word boundaries.

-mm       Puts data in code segment.

-mr       Use more registers as temporary registers
          (fewer for register variables).  This option
          should only be used to work around an
          "Expression too complex" error message.

-ms       Puts static strings in data segment.

-o        Specifies name for .o file.

-pa       Turns on ANSI preprocessor and trigraphs.
          Turns off 'cdemou'

-pb       make bitfield unsigned by default.

-pc       Allows extra characters after #endif or #else.
          Defaults ON!

-pe       Causes enums to occupy only the amount of space
          needed.  Def. OFF!

-pl       Defines ints to be 32 bits instead of 16.
          Defaults ON!

-po       Uses old (3.6) preprocessor.

-pp       make characters unsigned by default.

-ps       Defines ints to be 16 bits instead of 32.

-pt       Looks for trigraphs in input stream.  Def. OFF!

-pu       Uses unsigned preserving rules.

-qa       Causes generated prototypes to use _PARAMS(())
          syntax.

-qf       Enables QuickFix.

-qp       Generates prototypes for all non-static
          functions defined in current file.

-qq       Disables the startup and error messages from
          being displayed

-qs       Generates prototypes for all static functions
          defined within the current file.

-qv       Generates verbose information on memory usage.

-r4       Uses A4 for register variables.

-r6       use A6 for register variables.

-sa       Enables two-pass assembly for branch squeezing
          and other optimizations.

-sb       In-lines functions for strcpy(), strcmp(), and
          strlen().

-sf       Optimized for(;;) loops, test at the bottom of
          the loop.

-sm       Defines the __C_MACROS_ macro to replace some
          functions with in-line macro expansions defined
          in the header files.

-sn       Don't generate LINK and UNLK instructions for
          functions with no local variables.

-so       A shorthand way to specify 'afmnprs' for -s.

-sp       Delays popping arguments until necessary.

-sr       Allocates registers based on weighted usage
          counts.

-ss       Duplicate strings are pointers to same data.

-su       Allocates regs based on weighted usage counts,
          but allocates to user specified variables
          first.

-t num    Specify the maximum number of base names
          defined in amicall/syscall #pragmas.

-wa       Complains on arguments which do not match the
          prototype specification.

-wc       Disables ptr/ptr warning for (char *)<->(uchar *).

-wd       Generates warnings for old style K&R definitions.

-we       Quits on warnings.  Treats warnings as errors.

-wl       Shorthand for -waru and stands for lint.

-wn       Don't generate warnings on direct pointer/
          pointer conversions.

-wo       Causes pointer/int conflicts to generate
          warnings rather than errors.

-wp       Generates warnings for functions called w/o
          prototype.

-wq       Prints warnings to "aztecC.err".

-wr       Warns if function return type does not match
          declared type.

-ws       Ignore all warnings.

-wu       Warns about unused local variables.

-ww       Allows compiler to continue beyond 5 errors.

================Manx C 3.6a compiler options================

-Q        Generates error messages to a file called
          "AztecC.err"

+x5       Generates in-line code for strcpy(), strcmp()
          and strlen().

+x4       Forces literal strings to be alligned on and
          even boundary.

+2        Generate 68020 instructions.

+x1       Removes A6 from all lists.

+x3       Delays popping of arguments till it is
          necessary.

+ff       Motorola fast Floating Point

+fi       IEEE Double Precision Floating Point Emulation.

+f8       68881 Floating Point

+m        Generates stack depth checking code as part of
          function startup.

-n        Enables generation of source level debugging
          info.

+p        Portability: large code and data, 32 bit ints,
          saves D2 and D3.

+r        Allows the compiler to use A4 as a register
          variable.  Requires large code and data model
          for ALL modules.

-O file   Set output object file

-T        Keep assembly code around after compile.
          Includes source as comments in .asm file.

-A        Generate .asm file, don't assemble.

-Idir     Set include directory.

+Hfile    Generate pre-compiled include files.

+Ifile    Use pre-compiled include files.

+C        Large code model

+D        Large data model

-Dsym[=val] Define a symbol to the preprocessor.

-S        Don't print warning messages.

-B        Don't pause after every fifth error.

-Enum     Use an expression table having num entries.

-Lnum     Use a local symbol table having num entries.

-Ynum     Use a case table having num entries.

-Znum     Use a literal table having num bytes.

+B        Don't generate statement "public.begin"

+L        int variables and constants are 32 bits long.

+Q        Put character string constants in data segment,
          not code seg.
Newsgroups: comp.sys.amiga.programmer