Am Samstag, 18. Januar 2014, 21:29:14 schrieb Andrew:
> 18.01.2014 20:52, KP Kirchdörfer пишет:

> > have not looked into more packages) and git mixed results:
> > 
> > 
> > drobear gcc 4.6  -O2 87k
> > dropbear 4.8.2 -O2 110k
> > dropbear gcc 4.8.2 -Os 96k
> > 
> > dnsmasq gcc 4.6  -O2  125k
> > dnsmasq gcc 4.8.2 -O2 143k
> > dnsmasq gcc 4.8.2 -Os 117k
> > 
> > So mixed results; and probably  gcc 4.6 with -Os is also smaller than the
> > results above.
> 
> Maybe, for x86. This is compressed code size, or executables size?

Good hint. This were package sizes, executables seems indeed  smaller or 
similar. At least if we build with '-Os' as default.

> For MIPS - gcc 4.5-4.7 has regression which results in bigger code. This
> was a major reason for update.
> 
> >> I think we should use something like this into platform include:
> >> ifdef OPT_SPEED
> >> CFLAGS=-O2
> >> else
> >> CFLAGS=-Os
> >> endif
> >> CFLAGS+=.....
> > 
> > Well I prefer to do compile specific packages with -O2 instead of complete
> > toolchains. But then we do have time to decide after alpha-1.
> 
> I orefer to specify it into toolchain files to specify for each platform
> different options for CPU-intensive and generic packages.
> For CPU-intensive packages we should define OPT_SPEED (so it'll be
> compiled with -O2 or other flags), other packages were compiled with -Os.
> And for platforms with limited resources (like MIPS routers) we'll have
> to specify -Os for both variants.

Ok, reasonable.

I'll do some more testing, but I agree that we should stay with 4.8.2 .

kp

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to