I’m porting a library to the iPhone which makes a call to __clear_cache. A little research digs up this nice explanation of what it does.
The article lists the library functions for Linux, Windows and even Android. I don’t suppose there is an equivalent for iOS devices? Or some other workaround I can implement?
As iOS is a *NIX-based platform, and you can compile code with apple’s version of GCC (LLVM-GCC 4.2), you should just be able to make a function call to
__clear_cache(), like this:Note that this will NOT work with
Apple LLVM Compiler 3.1, only with GCC for some odd reason.