ARM Technical Support Knowledge Articles

BATCH FILE FOR BANKED APPLICATIONS

Applies to: BL51 Code-banking Linker/Locator

Answer

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 Drective list separated by spaces]
c:c51inc51 %1.c %2 %3 %4 %5 %6 %7 %8 %9

@echo off
REM  usage:
REM        link
c:c51inl51 @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 parentheses ().

MORE INFORMATION

Article last edited on: 2006-12-19 15:28:59

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential