[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Assembler Language Reference

.globl Pseudo-op

Purpose

Makes a symbol globally visible to the linker.

Syntax

.globl Name

Description

The .globl pseudo-op makes the symbol Name globally visible to the linker and available to any file that is linked to the file in which the .globl pseudo-op occurs.

Parameters

Name Represents any label or symbol that is defined locally and requires external visibility. This parameter can be a Qualname. (A Qualname specifies a Name and StorageMappingClass for the control section.)

Examples

The following example illustrates the use of the .globl pseudo-op:

   .globl main
main:
   .csect data[rw]
   .globl data[rw]

Related Information

Pseudo-ops Overview.

The .comm pseudo-op, .extern pseudo-op.


[ Previous | Next | Contents | Home | Search ]