Re: Stack parameter - pass by value - frame usage

2007-09-21 Thread Hariharan Sandanagobalane
Ian Lance Taylor wrote: Hariharan Sandanagobalane [EMAIL PROTECTED] writes: I looked at an inefficient code sequence for a simple program using GCC's picochip port (not yet submitted to mainline). Are you working with mainline sources? I was not. I tried the same with gcc 4.3 branch and

Stack parameter - pass by value - frame usage

2007-09-13 Thread Hariharan Sandanagobalane
Hello, I looked at an inefficient code sequence for a simple program using GCC's picochip port (not yet submitted to mainline). Basically, a program like long carray[10]; void fn (long c, int i) { carray[i] = c; } produces good assembly code. But, if i were to do struct complex16 { int

Re: Stack parameter - pass by value - frame usage

2007-09-13 Thread Ian Lance Taylor
Hariharan Sandanagobalane [EMAIL PROTECTED] writes: I looked at an inefficient code sequence for a simple program using GCC's picochip port (not yet submitted to mainline). Are you working with mainline sources? Note that the parameter is being written to the frame in the last 2