Reg Optimization

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

  • Hi pavi,

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

  • In reply to techguyz:

    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

  • In reply to Chris Shore:

    Thanq Pravin and Chris,

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

    Pavi.

  • In reply to techguyz:

    Yes Pravin

  • In reply to Pavi:

    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.

  • In reply to techguyz:

    Pravin,

        Actually

    I'm able to see such options, but when the higher optimization levels are used, the increment in the pointer is not happening, instead the pointer is showing the same old value instead of the incremented value..

  • In reply to Pavi:

    Pavi,

    Kindly post your code snippet here.