On Monday, 4 March 2013 at 17:35:45 UTC, Iain Buclaw wrote:
On Mar 4, 2013 3:27 PM, "Manu" <turkeyman@gmail.com> wrote:
I'd expect so.functions are still generating a stack frame and doing pointless work...
I'm doing a lot of experiments with GDC, and I'm noticing that leaf
pointless function including memory access O_O
int leaf() pure nothrow
{
return 0;
}
compile with -frelease -finline -O3, etc
I expect 2 opcodes, load immediate and return, but I get a whole
Any ideas? Is this normal?
?!
I think you are seriously underestimating GCC here... ;)
David