How to: Set Compiler Optimizations
The Visual Basic compiler supports several optimizations that can, in some cases, make an application file smaller, make an application run faster, or speed up the build process, Compiler optimizations are set in the Advanced Compiler Settings dialog box, accessible from the Compile page of the Project Designer.
To remove integer overflow checks
With a project selected in Solution Explorer, on the Project menu. click Properties.
Click the Compile tab.
Click the Advanced Compile Options button.
In the Advanced Compiler Settings dialog box, select the Remove integer overflow checks check box.
To enable optimizations in the output file
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Compile tab.
Click the Advanced Compile Options button.
In the Advanced Compiler Settings dialog box, select the Enable optimizations check box.
To generate debugging information
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Compile tab.
Click the Advanced Compile Options button.
The Advanced Compiler Settings dialog box appears. In the Generate debug info box, select Full, None, or pdb-only.
See Also
Tasks
How to: Set Compilation Constants
How to: Specify a Base Address for a DLL
How to: Optimize an Application for a Specific CPU Type