From mint-bounce@lists.fishpool.fi Mon Feb 1 02:56:48 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=YCG6hFio8zFsPxF9hqChiAuBfAODevvHwecNlud7FQ0=; b=c3WywKGT1w57PH0OsK8TsLO4nODFzpEeFtbD+OlDjbIp45UdIODFt+PY1diXDEXaxZ cSI9UvsRKbnmyqlUDEjbfHuxeqhctR5AXGd2ddhD021E6Buy/8Xnno4fiC0FnGdGpHWM pEuRljmg5WxSMNDVy0X+VHFfRnT9VaMyNaBqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RswG+UrXnioCalxijZHm+6PricjYkWjgRFL8q7VO3B1SxKoSVihZ0vTMzC2rXRGvJR HQjEQbWgkNoWrHX/04vgsYGAxFaZqtIeywQWwV0jqA3e86F+UMG466KsLwYpC5zDdWw0 q2PfDuMCNAwp5WS/7ctlC2lyG7WeYBubmR3nY= MIME-Version: 1.0 In-Reply-To: <4B66183F.6060302@chello.nl> References: <4B6607C7.6090309@freesbee.fr> <4B66183F.6060302@chello.nl> Date: Mon, 1 Feb 2010 08:50:43 +0100 Message-ID: Subject: Re: [MiNT] how to compile stik/sting stuff with gcc4 From: Miro Kropacek To: Henk Robbers Cc: "mint@lists.fishpool.fi" Content-Type: multipart/alternative; boundary=0015174bdd3a083dde047e853e23 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: miro.kropacek@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --0015174bdd3a083dde047e853e23 Content-Type: text/plain; charset=ISO-8859-1 > AHCC widens a char parameter to its 16 bit equivalent before pushing. > Hmm if AHCC does something like ext.w d0; move.w d0,-(sp) it breaks PureC ABI, doesn't it? I've just checked it, move.b d0,-(sp) stores char value and then reserve empty space, not vice versa. > I consider the way Pure C behaves as a bug (or at least a mistake). > To me it looks like neat optimization and taking advantage of m68k CPU feature ;-) -- MiKRO / Mystic Bytes http://mikro.atari.org --0015174bdd3a083dde047e853e23 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
=A0
AH= CC widens a char parameter to its 16 bit equivalent before pushing.
Hmm if AHCC does something like ext.w d0; move.w d0,-(sp) it breaks Pu= reC ABI, doesn't it? I've just checked it, move.b d0,-(sp) stores c= har value and then reserve empty space, not vice versa.=A0
=A0
I consider the way Pure C behaves as a bug = (or at least a mistake).
To me it looks like neat opti= mization and taking advantage of m68k CPU feature ;-)

--=A0
MiKRO / Mystic Bytes
http://mikro.atari.org
--0015174bdd3a083dde047e853e23--