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 <[email protected]>:
>
> Yakov <[email protected]> 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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to