Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
29 Views

Using tcmalloc inside Enclave

Hi,

Is there any example that shows how to use the tcmalloc in sdk/gperftools/libsgx_tcmalloc.a?

I don't know how to modify the Makefile.

Thanks!

0 Kudos
1 Reply
Highlighted
Beginner
29 Views

Hi Fan,

Download this developer reference and then search for TCMalloc: https://download.01.org/intel-sgx/sgx-linux/2.7.1/docs/Intel_SGX_Developer_Reference_Linux_2.7.1_Open_Source.pdf

There's an example there on how you can modify your makefile.

Try:

2.Add "-Wl,--whole-archive -L sdk/gperftools/ -l:libgsgx_tcmalloc.a -Wl,--no-wholearchive" into enclave linking options in the Makefile.

- Elephant

0 Kudos