Software Archive
Read-only legacy content
17061 Discussions

How was libc compiled ?

Vladimir_Dergachev
580 Views

Does anyone know compilation details of glibc distributed with mpss ?

Was icc used and with what flags ?

I am seeing particularly slow execution of functions like strtod, fprintf, malloc, etc.

0 Kudos
2 Replies
Sumedh_N_Intel
Employee
580 Views

glibc distributed with the MPSS was compiled with GCC. The most important flag that used was -O2. Are you seeing slow downs compared to Intel Xeon processors? 

0 Kudos
Vladimir_Dergachev
580 Views

Yes. So far the best solution is to rewrite the code to avoid using libc functions. This unfortunately implies using custom memory allocation pool instead of new/delete..

I have tried to compile glibc and uClibc with intel compiler, but ran into problems. Seems like at least parts of the code use assembler inlines, and, perhaps, gnu assembler syntax.

In theory it should be possible to recompile only parts of C library with Intel compiler, but I have not tried that yet.

0 Kudos
Reply