I am assigned a task to porting existing C application to use SGX and
measure the performance overhead. Specifically, I try to port *thttpd*. I
see most examples relate to leveraging intel sgx in existing project are
written in C++, but thttpd is written in C. I cannot find good tutorials
for porting existing C application to use sgx. I really appreciate it
if anyone can provide related resources or ideas.