Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Using gcc 8.3 with c++14 or c++17 to compile enclave

shmoo
新手
2,449 次查看

Although the documentation of the Linux Developer Refernence says that the enclave only works with the c++11 standard. I noticed that with gcc 8.3 it is possible to build the enclave in c++14 or c++17 mode.

Of course only as long as you don't use functionalities that are not allowed by the Intel SDK.

Why does this work? Is this allowed or can I introduce an unwanted bug?

0 项奖励
1 解答
JesusG_Intel
主持人
2,386 次查看

Hello Shmoo,

 

You are correct. As long as you use only the features allowed by the SGX SDK you should be okay. C++14 and C++17 are incremental improvements. Table 38 of the SGX Developer Reference for Linux lists the supported C++11 language features, which also apply to C++14 and C++17.

However, it is important to keep in mind that when a company says that a configuration is not supported, it means that the company has not tested or validated that configuration. It may or may not work. If it doesn't work, the company may not be able to help.

Sincerely,

Jesus G.

Intel Customer Support

 

在原帖中查看解决方案

3 回复数
JesusG_Intel
主持人
2,387 次查看

Hello Shmoo,

 

You are correct. As long as you use only the features allowed by the SGX SDK you should be okay. C++14 and C++17 are incremental improvements. Table 38 of the SGX Developer Reference for Linux lists the supported C++11 language features, which also apply to C++14 and C++17.

However, it is important to keep in mind that when a company says that a configuration is not supported, it means that the company has not tested or validated that configuration. It may or may not work. If it doesn't work, the company may not be able to help.

Sincerely,

Jesus G.

Intel Customer Support

 

shmoo
新手
2,375 次查看
Thank you for your fast response!
0 项奖励
JesusG_Intel
主持人
2,161 次查看

This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.


0 项奖励
回复