6 ms·
Not sure whether it helps, but here is way to force a "C" function to never be inlined (by asking for it's address, and then calling it): http://www.flipcode.c
by malkia 13y ago
Not sure whether it helps, but here is way to force a "C" function to never be inlined (by asking for it's address, and then calling it):
http://www.flipcode.com/archives/Forcing_Functions_To_Be_Called_Non-inlined.shtml http://www.flipcode.com/archives/Forcing_Functions_To_Be_Cal...
- silvestrov 13y agoBoth of the methods on the page are easy to optimize out. GCC does optimize the first version out. These methods are not safe and they do not ensure that the compiler doesn't optimize out a call to bzero.
- malkia 13y agoI guess you are right. 10+ years ago that made the trick :) Probably there is some declspec/attribute for it.