Date: Fri, 14 Feb 1997 23:26:42 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: cmott@srv.net (Charles Mott) Cc: freebsd-chat@FreeBSD.ORG Subject: Re: Trying to understand stack overflow Message-ID: <Mutt.19970214232642.j@uriah.heep.sax.de> In-Reply-To: <Pine.BSF.3.91.970213230057.7180C-100000@darkstar>; from Charles Mott on Feb 13, 1997 23:05:49 -0700 References: <199702140448.OAA27909@ogre.devetir.qld.gov.au> <Pine.BSF.3.91.970213230057.7180C-100000@darkstar>
next in thread | previous in thread | raw e-mail | index | archive | help
As Charles Mott wrote: > Would there be any problems with code that assumes a pointer is the same > size as a long int? Probably not for the i386 architecture in ``flat'' mode. But you can see the problem already quickly if you think of that dreaded segmented mode (with its various memory models). I think the C FAQ contains a panopticum of other weird architectures where this assumption is invalid. It's generally considered bad style to assume this. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970214232642.j>