[Issue 9816] Export is mostly broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 30 07:49:45 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9816
--- Comment #29 from Benjamin Thaut <code at benjamin-thaut.de> 2013-08-30 07:49:43 PDT ---
> No! This only applies to data that is marked as export. So you do know quite
> well what could be imported.
You are correct, I didn't take into account that we can leverage export in that
way.
The only question remaining is, how big the performance impact is when doing
cross DLL calls. When the compiler knows that the function is located inside a
DLL it can directly generate a jmp. If it doesn't know it, it has to call the
function stub which itself does the jmp. That means using this aliasing all
cross DLL function call would have a additional call instruction overhead. If
you use a object oriented API this overhead should be minimal because most
function calls go through vtables anyway. But how big is it for functional
libraries, like phobos?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list