delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/09/18/08:12:52

Message-Id: <4.2.0.58.20010918140045.00bd3d50@ics.u-strasbg.fr>
X-Sender: muller AT ics DOT u-strasbg DOT fr
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58
Date: Tue, 18 Sep 2001 14:02:01 +0200
To: djgpp-workers AT delorie DOT com
From: Pierre Muller <muller AT cerbere DOT u-strasbg DOT fr>
Subject: Re: GCC 2.9x and 3.x produces larger code
In-Reply-To: <2561-Tue18Sep2001144320+0300-eliz@is.elta.co.il>
References: <Pine DOT A41 DOT 4 DOT 05 DOT 10109181108500 DOT 28200-100000 AT ieva06>
<Pine DOT A41 DOT 4 DOT 05 DOT 10109181108500 DOT 28200-100000 AT ieva06>
Mime-Version: 1.0
X-MIME-Autoconverted: from 8bit to quoted-printable by cerbere.u-strasbg.fr id OAA18574
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA02013
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

At 13:43 18/09/01 , vous avez écrit:
> > Date: Tue, 18 Sep 2001 11:24:42 +0300 (WET)
> > From: Andris Pavenis <pavenis AT lanet DOT lv>
> >
> > I think one of the reasons is code and data alignment. For example
> > gcc-3.0.1 Linux to DJGPP cross-compiler generates:
> >       '.p2align 4' before procedure code
> >       '.p2align 4,,7' in some other places inside procedure (like
> >               before then begin of loop)
>
>I don't think so: in two object files I compared (after "objdump -d"),
>I counted only 269 nop instructions, which is 269 bytes.  That object
>file was 1.5KB larger when compiled with GCC 3.0.1.
But if the align size is more than one,
I don't think that gcc uses nop to align,
there are better (faster instructions) ways to do this...


Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller AT ics DOT u-strasbg DOT fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019