English
Language : 

CC78K4 Datasheet, PDF (381/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
#pragma section…
#pragma section
ERROR DESCRIPTION EXAMPLE 2
b1.h
const int i;
b2.h
const int j;
#include “b1.h”
b.c
const int k;
#pragma section @@DATA ??DATA1
#include “b2.h”
// There is C text and there is no file (b.c) where this #pragma
// directive is executed after it, so there is no error.
// ←Error.
// There is C text, and in the file following it where this #pragma
// directive is executed (b.c), a subsequent #include statement
// cannot be described.
ERROR DESCRIPTION EXAMPLE 3
c1.h
extern int j;
#pragma section @@DATA ??DATA1
c2.h
extern int k;
#pragma section @@DATA ??DATA2
c3.h
#include “c1.h”
extern int i;
#include “c2.h”
#pragma section @@DATA ??DATA3
// This #pragma directive is included and processed before c3.h
processing, so there is
// no error.
// ← Error.
// There is C text in c3.h and after that there is an #include
// statement, so this #pragma directive cannot be included after
// that.
// ← Error.
// There is C text, and after that there is an #include statement, so
// this #pragma directive cannot be included after that.
User’s Manual U15556EJ1V0UM
381