GDC and leaf functions
Manu
turkeyman at gmail.com
Mon Mar 4 07:25:34 PST 2013
I'm doing a lot of experiments with GDC, and I'm noticing that leaf
functions are still generating a stack frame and doing pointless work...
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 pointless
function including memory access O_O
Any ideas? Is this normal?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130305/10243dc2/attachment.html>
More information about the Digitalmars-d
mailing list