Path: utzoo!mnetor!uunet!husc6!bbn!schooler@oak.bbn.com From: schooler@oak.bbn.com (Richard Schooler) Newsgroups: comp.arch Subject: Re: Type Conversions - (Was: Bad RISC) Message-ID: <22372@bbn.COM> Date: 21 Mar 88 16:30:19 GMT References: <2035@ho95e.ATT.COM> <753@esunix.UUCP> Sender: news@bbn.COM Reply-To: schooler@oak.bbn.com (Richard Schooler) Organization: BBN Advanced Computers, Inc. Lines: 13 In-reply-to: sedwards@esunix.UUCP (Scott Edwards) In article <753@esunix.UUCP>, sedwards@esunix (Scott Edwards) writes: >Since you brought this up, I've recently discovered that in the ANSI draft >that prototypes override the implicit type conversions, as in float will >not be promoted to double if the prototype declares it to be float. Does >this mean that char would not be promoted to int? If so what would that >to machines that have alignment restrictions and parameters are passed on >the stack? Just curious. Many machines now have 32-bit wide stacks. Pushing an eight-bit quantity is possible, but advances the stack pointer by four (on a byte-addressable machine). The eight-bit quantity isn't promoted, but merely padded. -- Richard Schooler