[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

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, and the .weak pseudo-op.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]