SMART Enable TASM code optimization Directive
SMART
By default, smart code generation is enabled. However, smart code
generation is affected not only by the SMART and NOSMART directives,
but also by the VERSION directive.
Smart code generation affects the following code generation
situations:
■ Replacement of LEA instructions with MOV instructions if the operand
is a simple address
■ Generation of signed Boolean instructions, where possible. For
example, AND AX,+02 vs. AND AX,0002
■ Replacement of CALL FAR xxxx with a combination of PUSH CS, CALL
NEAR xxxx, when the target xxxx shares the same CS register.
For maximum compatibility with MASM, use the NOSMART directive.