This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

compiler error

I am using uVision3 to compile a project and get such an error:
C166 FATAL-ERROR - ACTION: PARSING INVOKE-/#PRAGMA-LINE LINE: C:\Keil\C166\BIN\C166.EXE ..\my_project\my_main.c MODV2 HLARGE WARNINGLEVEL(3) OPTIMIZE(9, ERROR: NUMERIC VALUE OUT OF RANGE
C166 TERMINATED.
Target not created

The vision of my C compiler is V5.00, maybe it is too low?

Parents
  • This project was created by compiler V6. I was told that the project can also be compiled with V5 but the optimization level must be lowered. By now I only found one optimization level under

    Project -> Options for Target 'my_project internal Flash' -> C166 -> Code Optimization Level.

    I suppose this is not what I am looking for because there is no optimize (9) there. Could you please tell me how to lower the optimization level for my case?

    Thanks

Reply
  • This project was created by compiler V6. I was told that the project can also be compiled with V5 but the optimization level must be lowered. By now I only found one optimization level under

    Project -> Options for Target 'my_project internal Flash' -> C166 -> Code Optimization Level.

    I suppose this is not what I am looking for because there is no optimize (9) there. Could you please tell me how to lower the optimization level for my case?

    Thanks

Children
  • " there is no optimize (9) there."
    Of course there isn't - you've just been told that this compiler does not have a level '9' optimisation!

    One of the main points of a GUI is that it does not present you with invalid options!

    "Could you please tell me how to lower the optimization level for my case?"

    Pick whatever level is available, and meets your needs.

    Again, supported levels will be listed in the manual for the particular version that you have