The 'bloat' is usually gotten rid of by the linker if really
unreferenced in the binary being linked.
There's a little trick to make sure the function is *always*
inlined, across modules too, allowing to suppress the then
guaranteed unused function symbol - converting it to a function
On Sunday, 9 July 2023 at 18:05:48 UTC, Cecil Ward wrote:
This is with full -O3 optimisation
try -fvisibility=hidden
-release sux btw
On Sunday, 9 July 2023 at 18:04:13 UTC, Cecil Ward wrote:
I have a program where the various routines are all marked
pragma( inline, true ). The compiler obeys this but the LDC and
GDC compilers still compile the function bodies even though the
bodies are not needed as they are supposed to be