Arm VERSION 1.2 Manual de usuario Pagina 31

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 360
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 30
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
Vista de pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 359 360

Comentarios a estos manuales

Sin comentarios