Mail Archives: cygwin/1997/01/31/20:36:16
Hi, you wrote:
: > I hope that's not very old, bad code relying to dereference NULL...
: I wrote the original post. I still haven't had time to check for problems
: in my own code but I am not a very experienced C++ programmer and got
: curious about your comment: What is "...relying to deference NULL"?
^^^^^^^^^
Sorry, you mad a cool typo! I just looked up this word in a dictionary.
Everybody should really honour and respect NULL pointers 8-)
Most older hardware and software didn't have memory protection at all,
and some data or code could legally reside at address zero, thus reads
or maybe even writes were allowed.
Our HP-UX box can do both, the default allowing it! From it's man ld:
-z Arrange for run-time dereferencing of null
pointers to produce a SIGSEGV signal. (This is
the complement of the -Z option.)
-Z Arrange to allow run-time dereferencing of null
pointers. See the discussions of -Z and pointers
in cc(1). (This is the complement of the -z
option.)
Now guess why I compile my programs -z ...
Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de)
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -