|
From: | rempas |
Subject: | [Tinycc-devel] How exactly inline works and should I inline all the time? |
Date: | Mon, 6 Dec 2021 09:35:19 +0100 (CET) |
Hi! I don't know if we must only post questions that are specific to the TCC compiler specifically (even tho this question can differ from compiler to compiler) or we can make questions about C in general and in the case that the first is true then please inform me so I know. Anyway I wanted to ask how inline works specifically and not generally. I know generally that it "puts the source code" inline so we don't have to use "jmp" but is there anything else to it that I should know? Are there any dangers or reasons than someone should not use it? Also is there a way to tell the compiler to inline every function rather than always having to add the "inline" keyword?
[Prev in Thread] | Current Thread | [Next in Thread] |