VLISP provides a number of options for compiling and linking a project's source code that affect the efficiency of the compiled code. For example, you can specify whether to create a separate FAS file for each source file or merge all compiled files into a single FAS file. You can choose to have the compiler remove the names of all local symbols from your compiled files. You specify these options in the Project Properties dialog box.
To specify project build options
- Open the project file (click Project
Open Project from the VLISP menu bar).
- Click the Project Properties button in the Project window toolbar.
- Select the Build Options tab in the Project Properties dialog box. VLISP displays the Build Options dialog box:
Some of the build options require extensive background information, which is provided in the following sections of this chapter. The build options are:
- Compilation Mode
- Merge Files Mode
-
Tell the compiler whether to create a separate FAS file for each source file, or to merge all compiled files into a single FAS file.
A single FAS file is faster to load and is required for certain types of optimization. Sometimes, however, you will prefer to load your code one file at a time. This is important if you have not completed the debugging or modification of the application's code. FAS files do not allow source code debugging, so it is recommended that you compile your code only after the initial debugging is done.
- Edit Global Declarations
- FAS Directory
- Tmp Directory
- Link Mode
-
Specify how function calls are to be optimized. This option is only available if optimized compilation is selected. Choose from the following:
- Do not link: This results in indirect linking of functions. The compiler stores the address of the symbol naming the function.
- Link: If selected, the compiler directly addresses function definitions and all calls where the functions are referenced.
- Internal: This directly links function calls and removes (drops) the function names from the resulting FAS files.
See About Choosing a Link Mode (AutoLISP) for further information on these options.
- Localize Variables
- Safe Optimize
- Message Mode