|
Message
From: Jeremy Bennett<jeremy.bennett@e...>
Date: Tue Jul 29 23:15:53 CEST 2008
Subject: [openrisc] Stack frame alignment on OpenRISC 1000
On Tue, 2008-07-29 at 22:21 +0200, Matjaz Breskvar wrote:> No, the documentation is correct. > > Having double word aligned stack essentialy wastes no space (would you dare > to be so tight with allocated space that it would matter ?), but it enables > more efficient code. > > r, > p.
Hi Matjaz,
Thanks for the insight. Looks like it's a bug in GCC - the compiled code I illustrated is clearly not double-word aligned. Alignment is a compile time constant in the GDB 6.8 port, so it can be easily changed to fit either word-aligned or double-word aligned.
I've obviously been doing too much coding on micro-controllers, where RAM is in short supply and you do worry about spare words on the stack!
Could you explain more about the efficient code generation? I can see that would be true for a 64-bit OpenRISC, but can't see that it makes any difference to 32-bit or 16-bit.
Best wishes,
Jeremy
-- Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@e... Web: www.embecosm.com
|
 |