JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
SPARC Assembly Language Reference Manual     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  SPARC Assembler Syntax

2.  Executable and Linking Format

3.  Directives and Pseudo-Operations

3.1 Assembler Directives

3.1.1 Section Control Directives

3.1.2 Symbol Attribute Directives

3.1.3 Assignment Directive

3.1.4 Data Generating Directives

3.2 Notation

3.3 Alphabetized Listing with Descriptions

3.4 Pseudo-Op Attributes

3.5 Pseudo-Op Examples

3.5.1 Example 1: Binding to C Variables

3.5.2 Example 2: Generating Ident Strings

3.5.3 Example 3: Data Alignment, Size, Scope, and Type

3.5.4 Example 4: "Hello World"

4.  Creating Data in Assembler

5.  SPARC Code Models

6.  Writing Functions -- The SPARC ABI

7.  Assembler Inline Functions and __asm Code

A.  Using the Assembler Command Line

B.  A Sample Assembler Program

C.  SPARC Instruction Sets and Mnemonics

Index

3.1 Assembler Directives

3.1.1 Section Control Directives

When a section is created, a section header is generated and entered in the ELF object file section header table. The section control pseudo-ops allow you to make entries in this table. Sections that can be manipulated with the section control directives are known as user sections. You can also use the section control directives to change the user section in which code or data is generated.


Note - The symbol table, relocation table, and string table sections are created implicitly. The section control pseudo-ops cannot be used to manipulate these sections.


The section control directives also create a section symbol which is associated with the location at the beginning of each created section. The section symbol has an offset value of zero.

3.1.2 Symbol Attribute Directives

The symbol attribute pseudo-ops declare the symbol type and size and whether it is local or global.

3.1.3 Assignment Directive

The assignment directive associates the value and type of expression with the symbol and creates a symbol table entry for the symbol. This directive constitutes a definition of the symbol and, therefore, must be the only definition of the symbol.

3.1.4 Data Generating Directives

The data generating directives are used for allocating storage and loading values.