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

Optimization level not working

Hi , I am working on LPC1788 with RTX , my code size is much bigger , so i want to optimize my code, after sarching through internet , there is optimization level(-O1 to -O3) specified by keil , but when i am using that optimization level(tried each level)in my code,but it is not working , not in debug mode also , why is this happened , please help or suggest.

Parents
  • Thanks ,ok my mistake(spelling)nexttime onwards i will be carefull while posting error.

    but i have used the same syntax as follows
    #pragma push
    #pragma OT(9)
    void function(void)
    {}
    #pragma pop

    but still shows error below

    error:TEST_REPORT_FILE_GENERATE_EXTRACT\test_report_file_generate_extract.c(477): warning: #161-D: unrecognized #pragma

Reply
  • Thanks ,ok my mistake(spelling)nexttime onwards i will be carefull while posting error.

    but i have used the same syntax as follows
    #pragma push
    #pragma OT(9)
    void function(void)
    {}
    #pragma pop

    but still shows error below

    error:TEST_REPORT_FILE_GENERATE_EXTRACT\test_report_file_generate_extract.c(477): warning: #161-D: unrecognized #pragma

Children
No data