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

simulator problems

Does anyone else have problems with the simulator? Most of the time it works great but every now and then when code changes are made and recompiled its like the debug and code info dont match up anymore and the cursor showing the execution doesnt follow the program correctly

Parents
  • "If you want to simulate (poor you) or emulate (all right!) you should never optimize beyond level 2"

    I disagree.

    That should read:

    "If you optimize beyond level 2 (or whatever), you must understand that source-level debugging will become difficult or even impossible"

    How difficult it becomes will depend on the nature of your code, and gets worse the harder you optimise (higher optimisation level setting).

    "There is no gain without pain"

    "There is no such thing as a free lunch"

    As ever, to use the tools effectively you need to understand them!

    "I adhere to the NASA paradigm 'we fly what we test'"

    Absolutely - and test what you fly!

    ie, if you intend to ship code built at optimisation level X, then you must do all your debugging & testing at level X.

Reply
  • "If you want to simulate (poor you) or emulate (all right!) you should never optimize beyond level 2"

    I disagree.

    That should read:

    "If you optimize beyond level 2 (or whatever), you must understand that source-level debugging will become difficult or even impossible"

    How difficult it becomes will depend on the nature of your code, and gets worse the harder you optimise (higher optimisation level setting).

    "There is no gain without pain"

    "There is no such thing as a free lunch"

    As ever, to use the tools effectively you need to understand them!

    "I adhere to the NASA paradigm 'we fly what we test'"

    Absolutely - and test what you fly!

    ie, if you intend to ship code built at optimisation level X, then you must do all your debugging & testing at level X.

Children