README.txt 1.0 KB

123456789101112131415161718192021222324252627282930
  1. ------------------------
  2. Purpose of SampleEnclave
  3. ------------------------
  4. The project demonstrates several fundamental usages of Intel(R) Software Guard
  5. Extensions (SGX) SDK:
  6. - Initializing and destroying an enclave
  7. - Creating ECALLs or OCALLs
  8. - Calling trusted libraries inside the enclave
  9. ------------------------------------
  10. How to Build/Execute the Sample Code
  11. ------------------------------------
  12. 1. Install Intel(R) SGX SDK for Linux* OS
  13. 2. Build the project with the prepared Makefile:
  14. a. Hardware Mode, Debug build:
  15. $ make
  16. b. Hardware Mode, Pre-release build:
  17. $ make SGX_PRERELEASE=1 SGX_DEBUG=0
  18. c. Hardware Mode, Release build:
  19. $ make SGX_DEBUG=0
  20. d. Simulation Mode, Debug build:
  21. $ make SGX_MODE=SIM
  22. e. Simulation Mode, Pre-release build:
  23. $ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0
  24. f. Simulation Mode, Release build:
  25. $ make SGX_MODE=SIM SGX_DEBUG=0
  26. 3. Execute the binary directly:
  27. $ ./app
  28. 4. Remember to "make clean" before switching build mode