跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

What is the difference between .EXPORT and .GLOBAL?

Latest Updated:09/10/2007

Question:

What is the difference between .EXPORT and .GLOBAL?

Answer:

When a program consists of multiple source files, symbols may be referenced from more

than one files. The way a symbol defined in one file is referenced to from another file is

called external definition. To reference a symbol that is defined in another file is called

external reference. External definitions can be declared by .EXPORT and .GLOBAL.

EXPORT is used to declare external symbol names.
GLOBAL is used to declare externally defined and externally referenced symbols.

For more information, please refer to Section 11 Assembly Specifications in your C/C++ Compiler, Assembler, Optimizing Linkage Editor User’s Manual. Also refer to an explanation for IMPORT.

Suitable Products
C/C++ Compiler Package for SuperH Family
C/C++ Compiler Package for H8SX, H8S, H8 Family