ppc and maybe also other cpu's stack problem
Ralph Schmidt
laire@t-online.de
Fri Jul 7 10:40:00 GMT 2000
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
More information about the Gcc
mailing list