Native Code Compiler Switches

See Also

Microsoft Visual Basic allows you to compile your applications to fast, efficient native code, using the same optimizing back-end compiler technology as Microsoft Visual C++. Native code compilation provides several options for optimizing and debugging that aren't available with p-code. These options are traditionally called "switches," because each option can be turned on or off.

This appendix documents the native code compiler options, which appear on the Compile tab of the Project Properties dialog box, available on the Project menu. For more information about native code, see "Compiling Your Project to Native Code" in "More About Programming."

Topics

Optimize for Fast Code

Maximizes the speed of compiled executable files.

Optimize for Small Code

Minimizes the size of compiled executable files.

No Optimizations

Turns off all compiler optimizations.

Favor Pentium Pro

Optimizes code generation to favor the Pentium Pro (P6) processor.

Create Symbolic Debug Info

Generates symbolic debug information in the compiled executable file.

Assume No Aliasing

Tells the compiler that your program does not refer to the same memory location by more than one name.

Remove Array Bounds Checks

Turns off error checking for valid array indexes and dimensions.

Remove Integer Overflow Checks

Turns off error checking for numeric values assigned to integer variables.

Remove Floating-Point Error Checks

Turns off error checking for valid floating point operations and numeric values assigned to floating point variables.

Remove Safe Pentium FDIV Checks

Turns off the generation of special code for Pentium processors with the FDIV bug.

Allow Unrounded Floating-Point Operations

Allows the compiler to compare floating-point expressions without first rounding to the correct precision.