English
Language : 

CC78K0S Datasheet, PDF (140/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 8 EXTERNAL DEFINITIONS
8.2 External Object Definitions
An external object definition refers to the declaration of an identifier for an object that has a file scope or initializer.
If the declaration of an identifier for an object which has file scope has no initializer without a storage class
specification or has the storage class static, the object definition is considered to be temporary, because it becomes
a declaration which has file scope with initializer 0.
Examples of external object definitions are shown below.
[Example of external object definition]
int i1=1; ..............................
static int i2=2; ...............
extern int i3=3; ...............
int i4;...................................
static int i5;....................
int i1;...................................
int i2;...................................
int i3;...................................
int i4;...................................
int i5;...................................
extern int i1;....................
extern int i2;....................
extern int i3;....................
extern int i4;....................
extern int i5;....................
Definition with external linkage
Definition with internal linkage
Definition with external linkage
Temporary definition with external linkage
Temporary definition with internal linkage
Valid temporary definition which refers to previous declaration
Violation of linkage rule
Valid temporary definition which refers to previous declaration
Valid temporary definition which refers to previous declaration
Violation of linkage rule
Reference to previous declaration which has external linkage
Reference to previous declaration which has internal linkage
Reference to previous declaration which has external linkage
Reference to previous declaration which has external linkage
Reference to previous declaration which has internal linkage
140
User’s Manual U14872EJ1V0UM