ganesh
Beta Tester
Reged: Jan 13 2008
Posts: 5
Loc: Tamilnadu, India
|
|
The attached 'testConstantPropagationForGlobalVariablesModifiedInTwoFunctions.c' was derived from ocg-test.c downloaded from http://www.htsoft.com/Files/ocg-test.c
'testConstantPropagationForGlobalVariablesModifiedInTwoFunctions.c' was compiled using the command line options --chip=8051 --opt=all -S
On analyzing the output file 'testConstantPropagationForGlobalVariablesModifiedInTwoFunctions.as' we found that, global variables containing constant value, which have usage/ definition in another function, are not propagated to its references used in an expression.
Query: Why does constant propagation optimization depend upon the usage of variable?
|
clyde
HI-TECH team member
   
Reged: Oct 16 2003
Posts: 633
|
|
We don't want to give away all our secrets!
|
harrymc
Reged: Oct 04 2004
Posts: 4
Loc: Perth, Western Australia
|
|
hehe
|