Lutger wrote:
Walter Bright wrote:
Don wrote:
It's pretty standard, though. For example, there are some bugs which
Visual C++ detects only when the optimiser is on. From memory, they are
all flow-related. The MS docs recommend compiling a release build
occasionally to catch them.
The flow analysis could be run on every compile by default, but it would
make for pretty slow turnaround.
Is it possible / reasonably to run flow analysis but still have a build that
can be properly debugged? If yes, wouldn't it be nice to have it as a
separate compiler option? Some people with build slaves, fast cpu's or
smallish projects won't care that much for the performance.
Just compile with:
-debug -O