SPARC Assembly Language Reference Manual

Chapter 1 SPARC Assembler for SunOS 5.x

1.1 Introduction

This chapter discusses features of the SunOS 5.x SPARC assembler. This document is distributed as part of the developer documentation set with every SunOS operating system release.

This document is also distributed with the on-line documentation set for the convenience of SPARCworksTM and SPARCompilerTM 4.0 users who have products that run on the SunOS 5.x operating system. It is included as part of the SPARCworks/SPARCompiler Floating Point and Common Tools AnswerBook, which is the on-line information retrieval system.

This document contains information from The SPARC Architecture Manual, Version 8. Information about Version 9 support is summarized in Appendix E, SPARC-V9 Instruction Set.

1.2 Operating Environment

The SunOS SPARC assembler runs under the SunOS 5.x operating system or the SolarisTM 2.x operating environment. SunOS 5.x refers to SunOS 5.2 operating system and later releases. Solaris 2.x refers to the Solaris 2.2 operating environment and later releases.

1.3 SPARC Assembler for SunOS 4.1 Versus SunOS 5.x

This section describes the differences between the SunOS 4.1 SPARC assembler and the SunOS 5.x SPARC assembler.

1.3.1 Labeling Format

1.3.2 Object File Format

The type of object files created by the SPARC assembler are ELF (Executable and Linking Format) files. These relocatable object files hold code and data suitable for linking with other object files to create an executable file or a shared object file, and are the assembler normal output.

1.3.3 Pseudo-Operations

See Appendix A, Pseudo-Operations for a detailed description of the pseudo-operations (pseudo-ops).

1.3.4 Command Line Options

See Appendix C, Using the Assembler Command Line for a detailed description of command line options and a list of SPARC architectures.