4 ms·
Just put it in a shared library and don't worry about it. Why all these compiler-specific brittle solutions when simply putting a function in a .so will ensure
by anon4 12y ago
Just put it in a shared library and don't worry about it. Why all these compiler-specific brittle solutions when simply putting a function in a .so will ensure it's being called and will prevent any link-time optimisations.
- TheLoneWolfling 12y agoLast time I checked, there was nothing specifically preventing an implementation of C from doing whole-program optimization at runtime, even to the point of dynamic library calls. So: this is not something you can rely on always working. Yes, it works currently, but it is not guaranteed to always do so.