This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BreakPointing is disabled

Hi , I'm writing a c code which inside it , I call a linear assembly function , I'm familiar with calling stuff and so on and so forth ,

I am using css 4.2 . 

My problem :

When I'm debugging the code , I cannot insert breakpoint in lines 13 ,14,15 ...,21 , but Before line 13 and after line 21 

there is no problem and the simulator stops and performs the tasks.(lines 13 to 21 is not converted to assembly when I see the final assembly code in

view >> disassembly )

I don't know what is the problem and why these lines cannot be converted to assembly 

i need to finish my code , ASAP for final exam , plz help

  • There is not any compilation error or even warnings , I can send my whole project if needed.

  • Rahim,

    Try turning off optimization. You can do this by using the Debug build configuration or by changing the optimization settings for the single linear assembly file.

    It is very common in C code for the optimizer to move code around or make changes to the code that make debugging more difficult. It is common practice to debug the program's functionality using the Debug build configuration, and then switch to full optimization when you have that functionality working the way you want it to work.

    Consider this question: how would you optimize this linear assembly function if you were the compiler?

    Regards,
    RandyP