[chbot] Chchrobotics Digest, Vol 153, Issue 31

Bevin Brett bevin_brett at hotmail.com
Tue Jun 30 22:34:20 BST 2020


I am interested in why your code cares about optimization level.

Most modern compilers have many different optimizations controlled by command line switches, and they also package them into a few sets for easy usage

They can be summarized as:

optimizations that have leave a very close source to instruction set and data placement correspondence,  for ease of debugging
  these are always all on by default

safe optimizations that shrink the instructions size

safe optimizations that expand the instructions size and usually decrease execution

unsafe optimizations like the above - these may cause crashes or bad answers unless your program meets some additional requirements

/Bevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20200630/104a06d5/attachment.html>


More information about the Chchrobotics mailing list