new gcc and binutils RPMS was Re: Problems with arm-rtems-gcc

wangyf(sina) wangyf_tshua at sina.com
Fri Jul 13 14:26:10 UTC 2001


Thank you very much!
I have downloaded the RPMs and used gcc 2.95.3 to build my programs.
To my surprised, when I use "make", the final BIN file will be about 300K bytes large, but when I use "make CFLAGS+='-fpack-struct' ", the final BIN file will be about 800K bytes large. 
So if I use '-fpack-struct', will gcc disable other optimization?
Thanks!

Best regards,
yunfei

----- Original Message ----- 
From: "Joel Sherrill" <joel.sherrill at OARcorp.com>
To: "wangyf(sina)" <wangyf_tshua at sina.com>
Cc: <m.salem at unsw.edu.au>; <rtems-users at OARcorp.com>
Sent: Friday, July 13, 2001 12:28 AM
Subject: new gcc and binutils RPMS was Re: Problems with arm-rtems-gcc


> I had actually just put them on the ftp site.  There are
> new RPMS for:
> 
>   binutils 2.11.2 
>   gcc 2.95.3+newlib 1.9.0
> 
> NOTE: binutils 2.11.2 still seems to be broken for sh-coff. We are
>       locally still using the last binutils 2.10 RPMs and those were
>       used to build the new gcc RPMS.
> 
> Please report problems to the list.
> 
> --joel
> 
> "wangyf(sina)" wrote:
> > 
> > But where can I get gcc 2.95.3 for rtems? Can I use arm-linux-gcc to compile RTEMS?
> > 
> > Best regards,
> > yunfei
> > 
> > ----- Original Message -----
> > From: "Marc Salem" <msalem at cse.unsw.edu.au>
> > To: "wangyf(sina)" <wangyf_tshua at sina.com>
> > Cc: <rtems-users at oarcorp.com>
> > Sent: Thursday, July 12, 2001 4:20 AM
> > Subject: Re: Problems with arm-rtems-gcc
> > 
> > > On Wed, Jul 11, 2001 at 09:16:06PM +0800, wangyf(sina) wrote:
> > > > Hi, Dear all,
> > > >
> > > > I have download arm-rtems-gcc-gcc2.95.2newlib1.9.0-2.i386.rpm from ftp.oarcorp.com and install it. I can build RTEMS with it, but it cannot accept "-fpack-struct" option. If I type " arm-rtems-gcc ... -fpack-struct ... ", there is no error happening, but the structures in my program will not be packed.
> > > > Has anyone met such a problem before? Please comment.
> > > > Thanks!
> > >
> > > I had problems using arm-linux-gcc 2.95.2 in another project. At the
> > > very least, it generates incorrect code when it optimises 32-bit
> > > constant loading/generation.
> > >
> > > This is where it replaced a 32 bit load of a constant from memory with
> > > two instructions to build it using immediates. My assumption was that
> > > the machine description for some ARM instructions was incorrect.
> > >
> > > arm gcc 2.95.3 is working fine for me.
> > >
> > >  -Marc
> > >
> > > >
> > > > Best regards,
> > > > Yunfei Wang
> > >
> > > --
> > >
> > > Marc Salem
> > > m.salem at unsw.edu.au
> > > 0416 033 180
> > >
> > > UNSW Solar Racing Team          School Of Computer Science & Engineering
> > > http://www.sunswift.com/        http://www.cse.unsw.edu.au/
> > >
> > >
> > >
> 
> -- 
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel at OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985
> 
> 


More information about the users mailing list