How to: Set Compiler Optimizations (Visual Basic)

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

  1. With a project selected in Solution Explorer, on the Project menu. click Properties.

  2. Click the Compile tab.

  3. Click the Advanced Compile Options button.

  4. In the Advanced Compiler Settings dialog box, select the Remove integer overflow checks check box.

To enable optimizations in the output file

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Compile tab.

  3. Click the Advanced Compile Options button.

  4. In the Advanced Compiler Settings dialog box, select the Enable optimizations check box.

To generate debugging information

  1. With a project selected in Solution Explorer, on the Project menu, click Properties.

  2. Click the Compile tab.

  3. Click the Advanced Compile Options button.

  4. The Advanced Compiler Settings dialog box appears. In the Generate debug info list, select Full, None, or pdb-only.

See Also

Tasks

How to: Set Compilation Constants (Visual Basic)

How to: Specify a Base Address for a DLL

How to: Optimize an Application for a Specific CPU Type

Reference

Advanced Compiler Settings Dialog Box (Visual Basic)

Advanced Build Settings Dialog Box (C#)

Other Resources

Managing Compilation Properties