Date: Sat, 29 Jan 2000 14:35:44 +0100 From: Marc Lehmann To: pgcc AT delorie DOT com Subject: Re: pgcc and egcs alignment -- function, basic block and string Message-ID: <20000129143544.G1024@cerebro.laendle> Mail-Followup-To: pgcc AT delorie DOT com References: <38921CD6 DOT 2A725779 AT ix DOT netcom DOT com> <20000129032101 DOT A25630 AT atrey DOT karlin DOT mff DOT cuni DOT cz> <38927310 DOT 2033EED4 AT ix DOT netcom DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <38927310.2033EED4@ix.netcom.com>; from cbsears@ix.netcom.com on Fri, Jan 28, 2000 at 08:56:48PM -0800 X-Operating-System: Linux version 2.2.14 (root AT cerebro) (gcc version 2.95.1 19990816 (release)) Reply-To: pgcc AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: pgcc AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, Jan 28, 2000 at 08:56:48PM -0800, Chris Sears wrote: > Is there a switch to turn this alignment off so that I could test it? Yes, -malign-loops=xxx, -malign-functions=xxx etc.. Just read the manual(tm). > Admittedly, a cache line is word aligned as well, > but wouldn't .align 4 suffice to align to a word boundary? It depends. The only way data alginment hurts is by wasting space, which is rarely a problem (despite cache problems). aligning to a cache line helps in practise, although one would think that natural alignment would suffice. Maybe a aligning on longwords is a good trade-off, but that needs extensive benchmark data. > > I will verify this tommorow and in case you are correct, I will fix this bug. > If possible could you send me email telling me what happened. this list, please ;-> -- -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / pcg AT opengroup DOT org |e| -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | |