Technical information
Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
  Customer Notification r20tu0003ed1812  32 
No. a20 
Incorrect behavior on delete function optimization option "-OD" 
Version Information  
V3.5.1, V4.0.5, V4.0.5c 
Details 
Incorrect behavior on delete function optimization option "-OD". The option "-OD" has no 
influence. The code generation for specified function will not be skipped. The initial code of the 
function is still part of the executable.  
Example: 
init.c: 
void wait(void) 
{ 
 int a=0; 
 while(a<35000) 
 { 
 a++; 
 } 
} 
main.c: 
extern void wait(void); 
void main(void) 
{ 
 while(1) 
 { 
 wait(); 
 } 
} 
Command Sequence 
ccv850e -noobj -g main.c init.c -OI=wait -OD=wait -o v030121a 
Workaround 
Use linker option “-delete”. This causes the linker to remove functions that are not referenced in the final 
executable. 










