Skip to content
jckarter edited this page Jan 26, 2012 · 20 revisions

Performance

  • Benchmarks are slower than equivalent C or C++ code

    Clay's library includes bounds check and integer overflow assertions by default, which adds about 10% overhead in typical code. Make sure you test with -Dclay.DisableAssertions to disable all assertions, or -Dclay.DisableAssertions.boundsChecks -Dclay.DisableAssertions.overflowChecks to disable only bounds and overflow check assertions, to get a fair comparison.

Building Clay

  • How do I build a debug version of Clay?

    When running cmake, set the CMAKE_BUILD_TYPE attribute: cmake -DCMAKE_BUILD_TYPE=Debug ..

  • Clay complains about parser errors on /* tokens

    Older versions of GCC have a compiler bug that breaks Clay's parser. Try updating your GCC, or using Clang.

  • _Clay won't compile because it says it requires LLVM 3.0, even though I have LLVM 3.x

    LLVM minor revisions and developer versions are not source compatible. Only LLVM 3.0 release is currently supported.

Clone this wiki locally