Enables or disables compiler optimizations.
/optimize[ + | - ]
Compiler optimizations make your output file smaller, faster, and more efficient. However, because optimizations result in code rearrangement in the output file, /optimize+ can make debugging difficult.
All references (see /reference) in an assembly must have the same optimization settings.
To prevent an optimized output file, specify /optimize-.
You can combine the /optimize and /debug options.
To set /baseaddress in the Visual Studio integrated development environment
To set /optimize programmatically
The following code compiles t2.vb
and enables compiler optimizations:
vbc t2.vb /optimize