Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
を呼び出すライブラリを iPhone に移植しています__clear_cache。ちょっとした調査で、それが何をするかについてのこの素晴らしい説明が掘り下げられます。
__clear_cache
この記事には、Linux、Windows、さらには Android のライブラリ関数がリストされています。iOSデバイスに相当するものはないと思いますか? または、実装できる他の回避策はありますか?
iOS は *NIX ベースのプラットフォームであり、Apple の GCC バージョン (LLVM-GCC 4.2) でコードをコンパイルできるため、次の__clear_cache()ように関数呼び出しを行うだけで済みます。
__clear_cache()
extern void __clear_cache(char *beg, char *end); __clear_cache(beg, end);
これはでは機能せApple LLVM Compiler 3.1ず、何らかの奇妙な理由で GCC でのみ機能することに注意してください。
Apple LLVM Compiler 3.1