[cfe-dev] Patch for __builtin_bzero

Eli Friedman eli.friedman at gmail.com
Sat Jul 19 11:24:20 PDT 2008


On Sat, Jul 19, 2008 at 12:04 AM, Nico Weber <nicolasweber at gmx.de> wrote:
> Hi,
>
> with the attached patch, vim7 can be built with `make CC=ccc`. Linking takes
> about 3 minutes (with a debug build of llvm), and vim's build process runs
> the linker several times (at least 3 times), so total linking time is about
> 3 minutes.

Okay, cool... although the difference between debug and release is
pretty big.  clang is roughly 2x faster in release mode, and linking
is roughly 5x faster, if I recall correctly.

> __builtin_bzero() simply calls the library's bzero() in this patch.
> Would it be better to use the llvm.memset intrinsic instead? I believe
> Windows does not have bzero in its c library.

I'd say don't bother for the moment; if it becomes an issue, we can
deal with it later.

-Eli



More information about the cfe-dev mailing list