Pragma noalias, Pragma cpu <cpu name, Pragma globalcopy – Zilog EZ80F916 User Manual

Page 440: Pragma noglobalcopy, Pragma globalcse, Pragma noglobalcse, Pragma globaldeadvar, Pragma noglobaldeadvar

Advertising
background image

UM014423-0607

Compatibility Issues

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

420

#pragma noalias

Disables alias checking. Before using this pragma, be sure that the program does not use
aliases, either directly or indirectly. An alias occurs when two variables can reference the
same memory location. The following example illustrates an alias:

func()

{

int x,*p;

p = &x; /* both

x

and

*p

refer to same location */

.

.

.

}

If both *p and x are used below the assignment, then malignant aliases exist and the
NOALIAS switch must not be used. Otherwise, alias is benign, and the NOALIAS switch
can be used.

#pragma cpu <cpu name>

Defines the target processor to the compiler.

#pragma globalcopy

Enables global copy propagation.

#pragma noglobalcopy

Disables global copy propagation.

#pragma globalcse

Enables global common elimination unless local common subexpressions are disabled.

#pragma noglobalcse

Disables global copy subexpression elimination.

#pragma globaldeadvar

Enables global dead variable removal.

#pragma noglobaldeadvar

Disables global dead variable removal.

Advertising
This manual is related to the following products: