You copied the Doc URL to your clipboard.

T32 instruction width diagnostics

armasm can issue a warning when it assembles a T32 instruction to a 32-bit encoding when it could have used a 16-bit encoding.

If you use the .W specifier, the instruction is encoded in 32 bits even if it could be encoded in 16 bits. You can use a diagnostic warning to detect when a branch instruction could have been encoded in 16 bits, but has been encoded in 32 bits. To do this, use the --diag_warning 1607 command-line option when invoking armasm.

Note

This diagnostic does not produce a warning for relocated branchinstructions, because the final address is not known. The linkermight even insert a veneer, if the branch is out of range for a 32-bitinstruction.

Related concepts

Was this page helpful? Yes No