Share via


Visual Basic Concepts

Optimize for Small Code

Minimizes the size of compiled executable files by instructing the compiler to favor size over speed.

When the compiler translates Visual Basic statements into machine code, there are often many different sequences of machine code that can correctly represent a given statement or construct. Sometimes these differences offer trade-offs of size versus speed. Selecting this option ensures that when the compiler recognizes such alternatives it will always generate the smallest code sequence possible, even when that may decrease the execution speed of the compiled program.