Keil Logo

Preprocessing a scatter file when linking with armlink

3.6 Preprocessing a scatter file when linking with armlink

Preprocessing a scatter file when linking with armlink in Arm® Compiler 6 requires extra options.

The following shows the required change to the first line of the scatter file:

Arm Compiler 5
#!armcc -E
Arm Compiler 6

#!armclang -E --target=arm-arm-none-eabi -mcpu=cortex-m7 -xc

The mandatory option --target specifies the target state, either AArch32 state, as shown in this example, or AArch64 state. See --target.

The option -mcpu specifies a processor, Cortex®M7 in this example. You can also use -march to specify an architecture. See -mcpu or -march.

The option -x specifies the source language. See -x.

The option -E makes armclang only execute the preprocessor step. See -E.

Non-ConfidentialPDF file icon PDF version100068_0613_00_en
Copyright © 2014–2019 Arm Limited or its affiliates. All rights reserved. 
  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.