
Writing ARM and Thumb Assembly Language
ARM DUI 0068B
Copyright © 2000, 2001 ARM Limited. All rights reserved.
2-19
2.4
Using the C preprocessor
You can include the C preprocessor command
#include
in your assembly language
source file. If you do this, you must preprocess the file using the C preprocessor, before
using
armasm
to assemble it. See
ADS Compilers and Libraries Guide
.
armasm
correctly interprets
#line
commands in the resulting file. It can generate error
messages and
debug_line
tables using the information in the
#line
commands.
Example 2-4 shows the commands you write to preprocess and assemble a file,
sourcefile.s
. In this example, the preprocessor outputs a file called
preprocessed.s
, and
armasm
assembles
preprocessed.s
.
Example 2-4 Preprocessing an assembly language source file
armcpp -E < sourcefile.s > preprocessedfile.s
armasm preprocessedfile.s
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...