English
Language : 

CC78K4 Datasheet, PDF (136/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler 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 file scope or an
initializer. If the declaration of an identifier for an object that has file scope has no initializer without storage class
specification or has static storage class, the object definition is considered to be temporary, because it becomes a
declaration that 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
136
User’s Manual U15556EJ1V0UM