This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ppc and maybe also other cpu's stack problem


 Hello

Let's assume you have a lot constructs like this below gcc generates
*really* ugly code. It seems to grow the stack more and more and is
unable to see that the structs have no meaning outside of its lifetime.
It could simply make some kind of  stack union for these temp stack
extensions.
Do I miss something here or is there a cure for this problem in the
current gcc or in the coming version ?

Regards.

Little example:

void	func(void)
{

{
struct dumdidum big;
  DoSomething(&big);
}

{
struct dumdidum big;
  DoSomething(&big);
}

{
struct dumdidum big;
  DoSomething(&big);
}

}
---
Ralph Schmidt,laire@t-online.de(private),NextMail welcome

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]