AARM User's Guide

Discontinued

PUBLIC Assembler Statement

Arguments
PUBLIC symbol 〚, symbol ...〛
Description

The PUBLIC statement specifies that the listed symbols may be used in other object modules. The symbols specified are marked as public in the generated object module and are used by the linker to resolve external references from other object modules.

The symbols specified must be defined in the source file in which they are marked public.

The following types of symbols may be declared public:

  • Variables stored in DATA or CONST memory.
  • Labels defined in ARM and THUMB code memory.
  • Constants defined using EQU.
See Also

EXTERN, EXTRN

Example
PUBLIC  myvar, yourvar, othervar