On 7/8/17, Roberto C. <mecca...@gmail.com> wrote: > > while trying to install and sqlite package for R statistical language > (Rsqlite) I came across I bug: i could not compile the package with the > intel compiler ICC / ICPC. You can find the whole discussion (and the > solution) here - https://github.com/rstats-db/RSQLite/issues/223
(1) If I understand correctly, icpc is the C++ compiler and icc is the C compiler. SQLite is written in C, not C++, so you should always use icc not icpc for compiling SQLite. (2) I downloaded and installed the 30-day free trial of ICC just now. The trunk version of SQLite compiles and runs fine. "icc -v" reports "icc version 17.0.4". Maybe this issue only applies to older versions of icc? (3) I compiled SQLite on each of gcc-5.4, gcc-7.1, clang-3.5, and icc-17.0 and compared both the size of the resulting binary and the performance. icc gave the largest binary and the slowest performance. Here are the actual results: gcc-5.4: 491585 bytes, 1,124 million CPU cycles. gcc-7.1: 487582 bytes, 1,121 million CPU cycles. clang-3.5: 569570 bytes, 1,170 million CPU cycles icc-17.0: 536596 bytes, 1,274 million CPU cycles As you can see, the gcc-compiled binary of SQLite is 9% smaller and 12% faster than the icc-compiled binary. So, maybe the solution is to just not use icc? -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users