Optimiser Problems - common block subroutines

Does any one else have problems with the higher levels of optimisation available to C51?

With common block subroutines switched on, sometimes, just sometimes, C51 will generate completely wrong code.

I have noticed that the problems are often associated with pointers that are automatic variables and where there is a variable of the same name in another function.

Common block subroutines have a dramatic affect on code size, but I don't use this level of optimisation because it just does not seem to be reliable.

Parents
  • With common block subroutines switched on, sometimes, just sometimes, C51 will generate completely wrong code.

    Graham,

    Can you please send me an example of this? There are currently no known problems with common block subroutines. There were some problems in the early releases, but they were corrected long ago. What compiler version are you using?

    Jon

Reply
  • With common block subroutines switched on, sometimes, just sometimes, C51 will generate completely wrong code.

    Graham,

    Can you please send me an example of this? There are currently no known problems with common block subroutines. There were some problems in the early releases, but they were corrected long ago. What compiler version are you using?

    Jon

Children
More questions in this forum