Intel PKU Instruction Support Lands In GCC

Written by Michael Larabel in GNU on 24 December 2015 at 08:14 AM EST. 2 Comments
Just a few days ago I was writing about LLVM working on PKU memory protection keys. It seems now GCC has support for Intel's PKU instructions.

PKU Memory Protection Keys are going to be a feature of future Intel CPUs as explained in the aforelinked article and with them come new PDPKRU and WRPKRU instructions. With this commit today to the mainline GNU Compiler Collection, it appears GCC has now support for these new PKU instructions.

Memory Protection Keys also require support from the kernel side, which have yet to be merged, but hopefully this new memory protection feature will be readied in time for the feature appearing in forthcoming Intel hardware.

For exposing the support in GCC is the -mpku switch.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via

Popular News This Week