Modifying compile and link options for performance on Linux

Date:Archived
Product/Release:Visual LANSA
Abstract:Modifying compile and link options for performance, etc.
Submitted By:LANSA Technical Support
External(s):Linux

Compile options used when building OAMs, processes and functions are contained in the file referred to by the environment variable X_MAKINCLUDE. The settings for these are designed to give reasonable performance on a range of architectures. You may wish to experiment with compiling/linking for best performance on a particular target architecture, and thus need to change these settings.

The line beginning with CFLAGS contains options for the C compiler (cc). The line beginning with SHR_FLAGS contains options for the linker (ld). Use the commands "man cc" and "man ld" to show the man pages for these commands and their arguments. Backup the lansa*.mak file before you make any changes, and only change or add options to do with performance enhancement. If you find that any of your changes cause compile, link, or runtime failures, revert to the original file.

DO NOT CHANGE ANY OF THE OTHER OPTIONS apart from CFLAGS and SHR_FLAGS.

LANSA Support will only address problems for libraries that have been built with the standard lansa*.mak files. Modify the files at your own risk, and bear in mind that your changes will be overwritten when you install new versions of LANSA.