Re: [RFC PATCH 0/5] make use of gcc 9's "asm inline()"

From: Borislav Petkov
Date: Thu Aug 29 2019 - 14:42:31 EST


On Thu, Aug 29, 2019 at 11:15:04AM -0700, Linus Torvalds wrote:
> Un-inlining a function because it contains a single inline asm
> instruction is not productive. Yes, it might result in a smaller
> binary over-all (because all those other non-code sections do take up
> some space), but it actually results in a bigger code footprint.

... and also, like one of the gcc guys said at the time, we should be
careful when using this asm inlining, because, well, if we inline it
everywhere just like always_inline functions and the code footprint
grows considerably, then we get what we deserve.

So the onus is on us to keep such sequences small.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.