Keil Logo

Locating Modules

The LX51 Linker provides the BANKx and COMMON keywords to locate modules (specified in the inputlist) in code banks and the common area. Refer to the Command Prompt for more details.

The general format for the BANKx and COMMON keywords is:

BANKx {filename <[>(modulename)<]> <[>, ...<]>}

COMMON {filename <[>(modulename)<]> <[>, ...<]>}

Where

x is the bank number. It may be a value in the range 0-63 depending on the number of specified code banks.
{ and } enclose object files or library files.
filename is the name of an object file or library file.
modulename is the name of an object module in a library file.

For example:

LX51 COMMON{C_ROOT.OBJ}, &
     BANK0{C_BANK0.OBJ, MODUL1.OBJ}, &
     BANK1{C_BANK1.OBJ}, &
     BANK2{C_BANK2.OBJ} &
     TO MYPROG.ABS &
     BANKAREA(8000H,0FFFFH)
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.