Download Compilation Systems Volume 1 (Tools)
Transcript
Compilation Systems Volume 1 (Tools) Identifiers must not begin with a digit. If the assembler -A option is used, identifiers may also contain double-quoted strings of the preceding character set and the characters +, -, *, /, =, <, >, and &. The assembler does not prefix or suffix additional underscores to the identifier, as some compilers do. If a version "03.00" or a version "02.00" directive (discussed “ELF Symbol Attributes” on page 2-17) does not exist in the assembly file, the assembler removes a leading underscore, if one exists, from identifiers. If a version "03.00" or a version "02.00" directive does exist in the assembly file, the assembler does not remove a leading underscore from identifiers. Identifiers have a maximum length of 1024 characters. Examples of identifiers include: @L5, _subroutine_ Each identifier (symbol) may be classified as either predefined by the assembler or user-defined. Predefined Symbols 2 These symbols possess specific meanings for the assembler. They cannot be redefined by the user, nor may they be used outside their specific contexts. Predefinitions: • Instruction mnemonics • Assembler directives (see “Assembler Directives” on page 2-12) • General register names: r0 - r31 • Floating-point register names: f0 - f31 • Special-purpose register names: xer, lr, ctr, dsisr, dar, dec, sdr1, srr0, srr1, sprg0, sprg1, sprg2, sprg3, ear, pvr, ibat0u, ibat0l, ibat1u, ibat1l, ibat2u, ibat2l, ibat3u, ibat3l, iabr • PowerPC 601-specific special-purpose register names: mq, rtcu, rtcl, dec, hid1 • PowerPC 603-specific special-purpose register names: dmiss, dcmp, hash1, hash2, imiss, icmp, rpa • PowerPC 604-specific special-purpose register names: mmcr0, pmc1, pmc2, sia, sda • PowerPC 620-specific special-purpose register names: asr, mmcr0, pmc1, pmc2, sia, sda, buscsr, l2cr, l2sr, fpecr • Special-purpose register names absent from PowerPC 601: tb, tbl, dbat0u, dbat0l, dbat1u, dbat1l, dbat2u, dbat2l, dbat3u, dbat3l 2-6