Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
Enables commands to be passed to the preprocessor when preprocessing a scatter file.
You specify a preprocessor on the first line of the scatter file.
--predefine="string"
"string"
string
You can use more than one --predefine option on the command-line.
--predefine
You can also use the synonym --pd="string".
--pd="string"
Use this option with --scatter.
--scatter
The following example shows the scatter file contents before preprocessing.
#! armclang -E lr1 BASE { er1 BASE { *(+RO) } er2 BASE2 { *(+RW+ZI) } }
Use armlink with the command-line options:
--predefine="-DBASE=0x8000" --predefine="-DBASE2=0x1000000" --scatter=filename
filename
This passes the command-line options: -DBASE=0x8000 -DBASE2=0x1000000 to the compiler to preprocess the scatter file.
-DBASE=0x8000 -DBASE2=0x1000000
The following example shows how the scatter file looks after preprocessing:
lr1 0x8000 { er1 0x8000 { *(+RO) } er2 0x1000000 { *(+RW+ZI) } }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
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.