Hacker News new | ask | show | jobs
by _RPM 3608 days ago
Does GCC use PCOMMIT?
2 comments

This isn't the kind of instruction a compiler would emit for regular code.
What would this be used for?
Kernel direct access to Xpoint and similar DIMMs. Potentially applications via mmap. You'd probably write a simple assembly function for it and invoke that from a language that can call assembly routines.

Obvious applications are filesystems and databases.

Hand-written stuff. You'd do asm volatile ("pcommit"); or similar.
No. "all known operating systems supporting persistent memory ... have already been updated to remove all uses of PCOMMIT."