7 Replies Latest reply: Apr 3, 2014 8:30 AM by techguyz RSS

Reg Optimization

dpavi Bit

Hi there,

          Im using DS-5 simulator for coding C program along with Assembly and Neon.In this vectorization is working perfectly but when optimization of MEDIUM/HIGH level is used, the  pointer increment is not working properly. Can anyone help me in this regard??

 

Thanks in advance

Pavi

  • Re: Reg Optimization
    techguyz Top Contributor

    Hi pavi,

     

    Are you trying to step the C program execution in higher Optimization levels ?

    • Re: Reg Optimization
      chrisshore Featured User

      Pravinchanm is right to point out that stepping through program execution at C code level when using high optimization is sometimes problematic. In particular, if the compiler has vectorized some operations, then the correspondence between C statements and object code will be very obscure and the debugger may not show it correctly.

       

      Chris

      • Re: Reg Optimization
        dpavi Bit

        Thanq Pravin and Chris,

         

                 Yes, but do you think there is no solution for this???

         

        Pavi.

        • Re: Reg Optimization
          techguyz Top Contributor

          pavi

           

          I dunno about the options involved in ds5 simulator. Usually the debugger will have the capability to display the equivalent asm codes in between c programs.. Look for such a mode change Options where you can see the stepping of each asm instruction clearly in higher optimization levels.

    • Re: Reg Optimization
      dpavi Bit

      Yes Pravin