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 Subject: Re: GCC 2.9x and 3.x produces larger code In-Reply-To: <2561-Tue18Sep2001144320+0300-eliz@is.elta.co.il> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed X-MIME-Autoconverted: from 8bit to quoted-printable by cerbere.u-strasbg.fr id OAA18574 Content-Transfer-Encoding: 8bit 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 Precedence: bulk At 13:43 18/09/01 , vous avez écrit: > > Date: Tue, 18 Sep 2001 11:24:42 +0300 (WET) > > From: Andris Pavenis > > > > 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