[M3devel] interesting osf cc option for uninitialized variables
Jay K
jay.krell at cornell.edu
Sun Jun 13 07:46:14 CEST 2010
-trapuv
Forces all uninitialized stack variables to be initialized with
0xfff58005fff58005. When this value is used as a floating-point vari-
able, it is treated as a floating-point NaN and causes a floating-point
trap. When it is used as a pointer, an address or segmentation viola-
tion usually occurs.
Relates to recent discussion.
This should probably be how longreals are initialize for this target.
Though in reality I'm not very motivated to make this target esp. better than any others.
It is interesting to see though what features people have put into C compilers.
- Jay
More information about the M3devel
mailing list