FreeBSDを語ろう Part 6
■ このスレッドは過去ログ倉庫に格納されています
0586名無しさん@お腹いっぱい。
05/02/19 19:57:20gccのinfoより引用。
---
`-Wstrict-aliasing'
This option is only active when `-fstrict-aliasing' is active. It
warns about code which might break the strict aliasing rules that
the compiler is using for optimization. The warning does not catch
all cases, but does attempt to catch the more common pitfalls. It
is included in `-Wall'.
---
ポインタの aliasing ってのは、結構最適化に影響を与えるものだ。
C99で登場した restrict ポインタなんてのは、そのためにできたものだし。
http://seclan.dll.jp/c99d/c99d07.htm#dt19991018
■ このスレッドは過去ログ倉庫に格納されています