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.
Precisely what errors did you get? If it goes wrong with "lots" of local variables, or "big" strings - that sound like something overflowing?