This sample code demonstrates how an Ada application can be executed inside of an SGX enclave. It is based on Intel's SGX SDK for Linux and a downsized Ada runtime.
- Install Intel(R) SGX SDK for Linux* OS
- Make sure your environment is set:
$ source ${sgx-sdk-install-path}/environment
- Build the project with the prepared Makefile:
- Hardware Mode, Debug build:
$ make
- Hardware Mode, Pre-release build:
$ make SGX_PRERELEASE=1 SGX_DEBUG=0
- Hardware Mode, Release build:
$ make SGX_DEBUG=0
- Simulation Mode, Debug build:
$ make SGX_MODE=SIM
- Simulation Mode, Pre-release build:
$ make SGX_MODE=SIM SGX_PRERELEASE=1 SGX_DEBUG=0
- Simulation Mode, Release build:
$ make SGX_MODE=SIM SGX_DEBUG=0
- Hardware Mode, Debug build:
- Execute the binary directly:
$ ./app
- Remember to "make clean" before switching build mode