Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.sys.encore Subject: Re: Compiler bug or insuficient language definition ? Message-ID: <1734@auspex.auspex.com> Date: 2 Jun 89 21:06:05 GMT References: <50537@tut.cis.ohio-state.edu> <1172@bnlux0.bnl.gov> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 15 >If you had written instead: > > printf("%lx %lx\n",f); > > you would see the correct format. At least on some implementations, including, presumably, the Encore one. If you *really* want to dump the bits of a value in a way that doesn't depend on the details of parameter passing, write a "dump bits" routine that takes a "char *" (or "unsigned char *") and perhaps a byte count, and do dump_bits((char *)&f, sizeof f); or something like that.