Search code examples
cgcccachingposix

Is there any compiler independent POSIX + C Standard method of flushing the instruction cache?


I would like a method of flushing the instruction cache similar to __builtin___clear_cache in GCC but for clearing the instruction cache independent of the compiler. Is there any POSIX + C Standard compliant way to do this?


Solution

  • There is no C Standard method of flushing the instruction cache.