Re: 4.8.2 -Og vs. -O1

2013-08-27 Thread Richard Biener
On Mon, Jul 1, 2013 at 7:45 AM, Gene Smith wrote: > I tried -Og optimization on a recent svn snapshot of 4.8 and don't see much > difference in the code compared to -O1. If anything, at least for one case, > -Og is actually less debuggable than -O1, e.g., for a simple buffer > selection like this:

Re: 4.8.2 -Og vs. -O1

2013-07-01 Thread gds
On 07/01/2013 02:05 AM, Joel Sherrill wrote: Have you compared it to -Os? That seems to produce assembly closer to what you would likely write by hand. I haven't benchmarked it much but it gives 7-10% smaller code in general. In many cases, fewer instructions is also a performance win. Hi Joel

Re: 4.8.2 -Og vs. -O1

2013-06-30 Thread Joel Sherrill
Have you compared it to -Os? That seems to produce assembly closer to what you would likely write by hand. I haven't benchmarked it much but it gives 7-10% smaller code in general. In many cases, fewer instructions is also a performance win. Gene Smith wrote: I tried -Og optimization on a r

4.8.2 -Og vs. -O1

2013-06-30 Thread Gene Smith
I tried -Og optimization on a recent svn snapshot of 4.8 and don't see much difference in the code compared to -O1. If anything, at least for one case, -Og is actually less debuggable than -O1, e.g., for a simple buffer selection like this: uint8_t* buffer; if (condx == true) buffer =