[Ada] Improve memory usage in functions Get_Line

Arnaud Charlet charlet@adacore.com
Wed Mar 26 10:28:00 GMT 2008


> 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



More information about the Gcc-patches mailing list