This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Improve memory usage in functions Get_Line
- From: Arnaud Charlet <charlet at adacore dot com>
- To: Laurent GUERBY <laurent at guerby dot net>
- Cc: gcc-patches at gcc dot gnu dot org, Vincent Celier <celier at adacore dot com>, dewar at gnat dot com, Ed Schonberg <schonberg at adacore dot com>
- Date: Wed, 26 Mar 2008 09:39:22 +0100
- Subject: Re: [Ada] Improve memory usage in functions Get_Line
- References: <20080326080527.GA15758@adacore.com> <1206520045.15075.871.camel@localhost>
> Interesting transformation. I wonder if semantically the compiler
> can do the stack space optimization in a generic way:
Yes, in theory the compiler could do this kind of transformation automatically
in most cases (no user defined "&", ...).
That's tricky front-end work of course.
Arno