Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!caip!clyde!cbatt!cbosgd!ihnp4!inuxc!pur-ee!pucc-j!purdue!jdl From: jdl@purdue.UUCP (Jon Loeliger) Newsgroups: net.lang.c Subject: Re: icky C code Message-ID: <688@mordred.purdue.UUCP> Date: Wed, 30-Jul-86 12:56:59 EDT Article-I.D.: mordred.688 Posted: Wed Jul 30 12:56:59 1986 Date-Received: Sat, 2-Aug-86 19:47:59 EDT References: <2239@brl-smoke.ARPA> <2446@umcp-cs.UUCP> <3117@utcsri.UUCP> Organization: Prude University Lines: 26 In article <3117@utcsri.UUCP>, greg@utcsri.UUCP (Gregory Smith) writes: > From a code efficiency > standpoint, for example, a 68000 should return int's in D0 and all pointer > types in A0, which would break the above. ( Somebody pointed out that a > certain 68K compiler has an option to return both types in *both* regs ). > Or am I wrong, and there is a non-unwritten ( i.e. official ) rule that > says everything should return in the same reg whenever possible? I am in the process of writing a 68000 backend and just this problem arose. As of now, I resolved it by postponing the critical decision, and left everything in D0 upon return. ------------------------------------------------------------------------------ Jon Loeliger I *think* these are my opinions, let me ask my boss... jdl@Purdue.ARPA Dept Computer Science jdl@Purdue.Edu W. Lafayette, IN 47907 jdl@mordred.cs.purdue.edu (317) 494-6180 {ihnp4, decvax, ucbvax, pur-ee}!purdue!jdl -- ------------------------------------------------------------------------------ Jon Loeliger I *think* these are my opinions, let me ask my boss... jdl@Purdue.ARPA Dept Computer Science jdl@Purdue.Edu W. Lafayette, IN 47907 jdl@mordred.cs.purdue.edu (317) 494-6180 {ihnp4, decvax, ucbvax, pur-ee}!purdue!jdl