An apparatus for detecting base-register usage conflicts in computer code
includes a parsing module configured to parse source code, an
identification module configured to identify statements in the source
code that reference a base register for address resolution according to
base-displacement form, and a determination module configured to
determine whether a base register referenced by one statement matches the
base register referenced by another. If two statements do reference the
same register, an apparatus and method in accordance with the invention
may notify a user such that corrective action may be taken.