Keil Logo

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 such as BYTE, WORD, and BIT.
  • Labels defined in NEAR and FAR memory.
  • Constants defined using EQU.
See Also

EXTERN, EXTRN

Example
PUBLIC  myvar, yourvar, othervar
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.