Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

ICC on Macos...

jeffr
Beginner
284 Views

How do I get ICC to generate direct calls to strcpy, memcpy, etc. It is currently generating calls to dylb_stub_strcpy, etc. I'm building with -i-statc -static-libgcc.

I used to build with -static-libcxa, but that's gone now...

0 Kudos
2 Replies
TimP
Honored Contributor III
284 Views
The compiler should warn if you misspell options like -i-static or otherwise supply unrecognized options.. I don't recognize your terminology "direct call" as meaning static link. If you mean to avoid linking special Intel library functions like intel_fast_memcpy(); you could arrange to avoid using the icc/include/string.h definition.
0 Kudos
jeffr
Beginner
284 Views

Ummm, what unrecognized options?

I want to call strcpy in my executable - not in a separate dylib. If I use -static-libgcc, those should be internal calls - I don't want to use dylib calls?

I'm fine using intel_fast_memcpy() - but I can't get it to generate those calls either...

0 Kudos
Reply