tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] manually inlining functions


From: Yakov
Subject: Re: [Tinycc-devel] manually inlining functions
Date: Sat, 1 May 2021 11:31:46 +0700

Kyryl you cannot inline everything because you will get code
explosion, often infinite code explosion when functions have a
circular dependency on each other. I am just talking about inlining
certain functions carefully chosen by a programmer.


сб, 1 мая 2021 г. в 11:13, Kyryl Melekhin <k.melekhin@gmail.com>:
>
> Yakov <exebook@gmail.com> wrote:
>
> > Manual inlining seems to be a straightforward thing, just clone the
> > node into the ast and rename all variables to something unique so I
> > thought maybe that's what tcc supports with some pragma or what not.
>
> If you create such a tool which can take any C code and straight up
> inline everything into main() function you would be revolutionary
> genious in my eyes. I don't know why, but seems like nobody tried
> creating such tool before or I am not aware of it's existance. If
> you find any, let me know. Thanks.
>
> Regards,
> Kyryl.
>
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]