Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notesfiles - hp internal release 1.2; site hp-dcde.UUCP Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!hp-pcd!hpfcla!hp-dcde!jack From: jack@hp-dcde.UUCP Newsgroups: net.lang.c Subject: Re: Casting Pointers Message-ID: <20000003@hp-dcde.UUCP> Date: Mon, 30-Jan-84 02:35:00 EST Article-I.D.: hp-dcde.20000003 Posted: Mon Jan 30 02:35:00 1984 Date-Received: Wed, 8-Feb-84 08:28:40 EST References: <354@houxt.UUCP> Organization: Hewlett-Packard - Fort Collins, CO Lines: 15 Nf-ID: #R:houxt:-35400:hp-dcde:20000003:000:566 Nf-From: hp-dcde!jack Jan 31 23:35:00 1984 Mr. Bloom states that you don't want casts (in this case), because casts generate calls to routines that will perform type conversion rather than inline code. Not on our 68000 C compiler! One can certainly consider architectures where (char *) is represented differently than (long *), but on a 68000 they're both just a 32-bit (or 24-bit) address. The ultimate solution is for each user to check the output of his own compiler, but any compiler that generates code for this type cast on a 68000 is pretty dubious. -Jack Applin (hplabs!hp-dcd!jack)