EPC Size

The program developer may have no control over the amount of EPC that is available to the application at the time of enclave instantiation, but when EPC sizes are limited developers should endeavor to keep their applications small. While Intel® SGX supports EPC Paging, that is the ability for the Kernel memory manager to remove a page from EPC memory and place it into a regular page still protected (but unexecutable), nevertheless it is a reasonably expensive operation. Excessive paging would have consequences for application performance.

For more complete information about compiler optimizations, see our Optimization Notice.