Re: Optimising for size

2008-07-15 Thread Hariharan
Hi Joel, I ran into a similar problem moving from 4.2.2 to 4.3.0. I looked a bit into it and found that 4.3 compiler inlines more aggressively than 4.2.x compiler. The reason was that the following two lines were removed from opts.c set_param_value ("max-inline-insns-single", 5);

Re: Optimising for size

2008-07-14 Thread Joel Sherrill
Joe Buck wrote: On Mon, Jul 14, 2008 at 10:04:08AM +1000, [EMAIL PROTECTED] wrote: I have a piece of C code. The code, compiled to an ARM THUMB target using gcc 4.0.2, with -Os results in 230 instructions. The exact same code, using the exact same switches compiles to 437 instructions with gc

Re: Optimising for size

2008-07-13 Thread Joe Buck
On Mon, Jul 14, 2008 at 10:04:08AM +1000, [EMAIL PROTECTED] wrote: > I have a piece of C code. The code, compiled to an ARM THUMB target using > gcc 4.0.2, with -Os results in 230 instructions. The exact same code, > using the exact same switches compiles to 437 instructions with gcc 4.3.1. > Consi