User`s guide

System LSI Division, Semiconductor Business
Fixed: The offset calculation for the address optimization is made incorrectly. The
variable defined after function’s definition should be excluded from the target of the
address optimization. It occurs only over the optimization level 1.
Ex>
#include <stdio.h>
int i0;
char c0;
void foo(void);
void main(void)
{
i0 = 1;
c0 = 2;
foo();
//The offset value of the variable ‘c0’ for the address optimization is changed by
the variable ‘i1’ defined after function’s definition. So the variable defined after
function’s definition should be excluded from the address optimization.
if (c0 != 2)
printf("fail\n");
}
int i1;
void foo(void)
{
i1 = 0x1122;
}
Property of Samsung Electronics Co., Ltd. 11