> -----Original Message-----
> From: 
> [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> org] On Behalf Of Paulo Marques
> Sent: Monday, September 08, 2008 5:43 AM
> To: avr-gcc-list@nongnu.org
> Subject: [avr-gcc-list] Stack usage under heavy inlining
> 
> 
> This is not a avr specific problem. See, for instance, Linus 
> complaining 
> of the same problem on i386 (stack size is a problem for the 
> kernel too):
> 
> http://lkml.org/lkml/2008/8/26/197
> 

That's funny. I agree with Linus:
"Gcc inlining is a total and utter pile of shit."
At least it seems that way for the AVR.

GCC has so many compiler switches just for inlining, coupled with confusing 
heuristics, it makes it difficult to understand what is happening with inlining.
 
> I can try with more recent versions, if someone suspects that this 
> behavior is better in a more recent gcc, but I just wanted to 
> warn other 
> developers who might hit the same problem.

I don't think the behavior has changed in recent versions.

Interestingly, the lkml post mentions a switch:
-fno-default-inline

I wonder how that would work out for the AVR. Maybe that should be considered 
for the AVR default specs, or at least for the WinAVR Makefile Template and the 
default AVR Studio Makefile.

Eric


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to