[LLVMdev] Prevent clang from replacing code with library calls

Anton Korobeynikov anton at korobeynikov.info
Thu Aug 7 04:12:09 PDT 2014


> 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



More information about the llvm-dev mailing list