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
  • " 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

Reply
  • " 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

Children
No data