 | Discussion Forum |  |
|
|
Different Optimization Levels in same programNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Mohit Gupta Posted 25-Jun-2001 17:44 GMT Toolset None |  Different Optimization Levels in same program Mohit Gupta Is it possible to use different optimization levels in the same program. This is because 2 functions in the program give error on assembling the .src file at level 6 and work correctly at level 3 whereas all other functions work correctly at level 6.
| | Read-Only Author Andrew Neil Posted 25-Jun-2001 18:48 GMT Toolset None |  RE: Different Optimization Levels in same program Andrew Neil Would it be better to fix the underlying problem, rather than just mask the symptoms? | | Read-Only Author Mohit Gupta Posted 26-Jun-2001 18:48 GMT Toolset None |  RE: Different Optimization Levels in same program Mohit Gupta Dear Andrew,
I myself feel that it is always better to fixup the underlying problem rather than just mask it as everyone wants to generate the shortest and the fasted code using the highest level of optimization. Recently I faced a problem. My source file main.c showed no errors on compiling but on assembling it showed loads of errors. I noticed that the program assembled errorfree on using optimization level 3 but gave errors on level 4. I further noticed that I had either declared 8-10 local variables in the routine which gave errors or had passed a string of 161 bytes to the function. What can be the possible cause and remedy?
Mohit | | Read-Only Author Andrew Neil Posted 27-Jun-2001 09:30 GMT Toolset None |  RE: Different Optimization Levels in same program Andrew Neil Precisely what errors did you get?
If it goes wrong with "lots" of local variables, or "big" strings - that sound like something overflowing? | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|