Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How is this dynamic loading implented? Is it effectively a cross-platform wrapper over LoadLibrary/GetProcAddress/etc. (and their POSIX equivalents) or is there more to it? Is it possible to make link time optimization work with dynamic loading?


> Is it possible to make link time optimization work with dynamic loading?

No, but nor can you with regular ol' linking against shared libraries. Or against static libraries (except for some mundane stuff like function reordering). LTO requires toolchain support and occurs before code generation.


> Is it effectively a cross-platform wrapper over LoadLibrary/GetProcAddress/etc.

Yes it's just that.

> Is it possible to make link time optimization work with dynamic loading?

Not that I know of (not sure).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: