From 0ae3f8263f2e48dba848668dc27b8e19f23133b6 Mon Sep 17 00:00:00 2001
From: Denis Davydov
- Debug mode, by default, uses the -Og
flag. It promises most of the
+ With GCC Debug mode, by default, uses the -Og
flag. It promises most of the
debugging experience of -O0
but at a better performance.
This is a reasonable choice for unit tests and enables numerous asserts
within the library. Sometimes, however, one needs Debug mode to use
- -O0
(e.g. GCC 6.2.0 optimizes out local variables with -Og
).
+ -O0
, where all compiler optimizations are avoided and code and variables
+ are exactly as indicated in the C++ program (e.g. with -Og
GCC 6.2.0
+ optimizes out local variables).
This can be achieved by configuring deal.II with
-DDEAL_II_HAVE_FLAG_Og=false
.