Difference between opt and dbg simulation

Asked by Nikola on 2009-02-23

Hello!

I would like to know what exactly is the difference when running a simulation with the ./fast-openwns and with ./openwns. The first one is much faster and we don't get any debug output, but is there also a difference in the evaluation?

Regards,
Nikola

Question information

Language:
English Edit question
Status:
Solved
For:
openWNS-Application Edit question
Assignee:
No assignee Edit question
Solved by:
Sebastian Max
Solved:
2009-03-26
Last query:
2009-03-26
Last reply:
2009-03-21
Best Sebastian Max (smx-comnets) said : #1

Hi Nikola,

The difference between the two is the way how the source code was compiled:

./openwns:
  * All code for the logger output active (i.e. output depends on the log level)
  * All assert-statements in the code active
  * Debugging information included in the executable (g++ switch -g)
  * No code optimization by the compiler (g++ switch -O0)

./fast-openwns
  * logger output deactivated
  * Asserts deactivated
  * No debugging information
  * Code optimization (-O3)

As the source itself is the same, any produced results must/should be exactly the same! There must be no difference in the evaluation!

I think this is pretty much all information we can give on this topic.

Regards,
  Daniel

Nikola (nkz) said : #3

Thanks Sebastian Max, that solved my question.