[LLVMdev] Prevent clang from replacing code with library calls

Anton Korobeynikov
Thu, 07 Aug 2014 11:12:09 -0000

> I downloaded the latest NDK (r10) and compiled with the following cmd:
> arm-linux-androideabi-clang myMemcpy.c -S -fno-builtin -o0
> It still produces assembly with a call to "memcpy". Maybe the
-fno-builtin
> is broken also in the latest release.
It's not broken. Even freestanding implementation is supposed to
provide mem* functions.

--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University