This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ppc and maybe also other cpu's stack problem
- To: gcc at gcc dot gnu dot org
- Subject: ppc and maybe also other cpu's stack problem
- From: laire at t-online dot de (Ralph Schmidt)
- Date: Fri, 7 Jul 2000 19:37:15 +0100
- Reply-To: laire at popmail dot owl dot de
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