Optimize †
Optimize Options †
There are two compiler options for optimizations: -O and -O2. These options enable compilation (C to assembly) levels.
The option -O or -O2 is passed to the C compiler as is and used for C level optimization.
Optimize Call †
When a CALL statement is executed, the called program is linked at run time. By specifying the compiler option -fstatic-call, you can statically link the program at compile time and call it efficiently. (see Static Linking)
Optimize Binary †
By default, data items of usage BINARY or COMP are stored in big-endian form. On those machines whose native byte order is little-endian, this is not efficient. Consider changing PIC to COMP-5 or to the 2002 standard USAGE BINARY-xxx, whereby xxx is CHAR for 1 byte, SHORT for 2 bytes, LONG for 4 bytes and DOUBLE (sic) for 8 bytes.
In addition, setting the option binary-size to 2-4-8 or 1-2-4-8 is more efficient than others.
Last-modified: Tue, 15 Jan 2008 05:31:38 GMT (1953d)




