|
|
|
|
|
by foxfluff
1614 days ago
|
|
> Can you still compile gcc code with -O0 (gcc option to turn optimization off) to get completely defined behavior? No. The standard specifies what's undefined, optimization levels don't change it (though there are compiler flags such as -fwrapv which make undefined things defined). However, turning off optimizations will make behavior easier to predict. |
|