Next: , Previous: CRIS-Expand, Up: CRIS-Dependent



8.5.3 Symbols

Some symbols are defined by the assembler. They're intended to be used in conditional assembly, for example:

      .if ..asm.arch.cris.v32
      code for CRIS v32
      .elseif ..asm.arch.cris.common_v10_v32
      code common to CRIS v32 and CRIS v10
      .elseif ..asm.arch.cris.v10 | ..asm.arch.cris.any_v0_v10
      code for v10
      .else
      .error "Code needs to be added here."
      .endif

These symbols are defined in the assembler, reflecting command-line options, either when specified or the default. They are always defined, to 0 or 1.

..asm.arch.cris.any_v0_v10
This symbol is non-zero when --march=v0_v10 is specified or the default.
..asm.arch.cris.common_v10_v32
Set according to the option --march=common_v10_v32.
..asm.arch.cris.v10
Reflects the option --march=v10.
..asm.arch.cris.v32
Corresponds to --march=v10.

Speaking of symbols, when a symbol is used in code, it can have a suffix modifying its value for use in position-independent code. See CRIS-Pic.