Keil Logo

BL51: Batch File for Banked Applications


Information in this article applies to:

  • C51 All versions

QUESTION

How do I make batch files to build a banked application?

ANSWER

The following are examples of batch files used to build a banked application. Note that the last file requires a fair amount of customization.


@echo off
REM  usage:
REM        compile filename [C51 Directive list separated by spaces]
c:\c51\bin\c51 %1.c %2 %3 %4 %5 %6 %7 %8 %9

@echo off
REM  usage:
REM        link
c:\c51\bin\bl51 @build.lnk

In the following, each object file must be replaced with the real object files from your project. Consider that each bank may have more than one object module. Additional directives must be added to the end.

B0{file.obj,file1.obj}, &
B1{file2.obj}, &
B2{file3.obj}, &
to output &
RS (256)

Place additional directives here. Be sure to note that bank location directives are encapsulated in parenthesis ().

MORE INFORMATION

  • Refer to BANKx in the BL51 User's Guide.
  • Refer to BANKAREA in the BL51 User's Guide.
  • Refer to Code Banking in the BL51 User's Guide.

Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  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.