This gist was moved to the benchmarks in the MPL11 repository.
This gist was moved to the benchmarks in the MPL11 repository.
This gist was moved to the benchmarks in the MPL11 repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldionne in ~/Desktop/ellcc-tests % ./ellcc/bin/ecc++ -v -target arm-none-eabi -isystem ${PWD}/ellcc/libecc/include/c++ -isystem ${PWD}/ellcc/libecc/include/arm main.cpp | |
ecc 0.1.17 based on clang version 3.8.0 (trunk) (based on LLVM 3.8.0svn) | |
Target: arm-none--eabi | |
Thread model: posix | |
InstalledDir: /Users/ldionne/Desktop/ellcc-tests/./ellcc/bin | |
"/Users/ldionne/Desktop/ellcc-tests/ellcc/bin/ecc" -cc1 -triple armv4t-none--eabi -emit-obj -mrelax-all -disable-free -main-file-name main.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu arm7tdmi -target-feature +soft-float-abi -target-feature +strict-align -target-abi aapcs -mfloat-abi soft -target-linker-version 253.3.3 -v -dwarf-column-info -resource-dir /Users/ldionne/Desktop/ellcc-tests/ellcc/bin/../libecc -isystem /Users/ldionne/Desktop/ellcc-tests/ellcc/libecc/include/c++ -isystem /Users/ldionne/Desktop/ellcc-tests/ellcc/libecc/include/arm -fdeprecated-macro -fdebug-compilation-dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/hana.hpp> | |
#include <tick/integral_constant.h> | |
namespace hana = boost::hana; | |
template <typename T> | |
struct TickIntegralConstant { using value_type = T; }; | |
namespace boost { namespace hana { | |
template <typename T, T n> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
hana_tuple = (1..200).step(10) | |
hana_map = (1..50).step(10).to_a | |
mpl = hana_tuple | |
%> | |
{ | |
"title": { | |
"text": "Executable size" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/exception.cpp b/src/exception.cpp | |
index a13a0b9..2c16060 100644 | |
--- a/src/exception.cpp | |
+++ b/src/exception.cpp | |
@@ -105,9 +105,9 @@ terminate() _NOEXCEPT | |
#endif // !__EMSCRIPTEN__ | |
#endif // !defined(LIBCXXRT) && !defined(_LIBCPPABI_VERSION) | |
+#if !defined(LIBCXXRT) && !defined(__GLIBCXX__) && !defined(__EMSCRIPTEN__) | |
bool uncaught_exception() _NOEXCEPT { return uncaught_exceptions() > 0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright Louis Dionne 2015 | |
// Distributed under the Boost Software License, Version 1.0. | |
#include <boost/hana.hpp> | |
#include <array> | |
using namespace boost::hana; | |
template <typename T> | |
void visit(T t) { } |
The goal of this project is to improve the compile-time associative data structures present in the Hana C++14 metaprogramming library. I aim to provide a richer interface than what is currently available and also to improve the compile-time performance of those data structures, while keeping the runtime performance on-par with non-naive hand-written code.
Background information
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› ~/code/gcc5/bin/g++ -std=c++1y ~/code/hana/test/worksheet.cpp | |
/Users/ldionne/code/hana/test/worksheet.cpp: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = std::is_same<T, T>{}(); _Tp = void]’: | |
/Users/ldionne/code/hana/test/worksheet.cpp:1411:25: required from here | |
/Users/ldionne/code/hana/test/worksheet.cpp:1408:50: in constexpr expansion of ‘((std::integral_constant<bool, true>*)(& std::is_same<T, T>()))->std::integral_constant<_Tp, __v>::operator()<bool, true>()’ | |
/Users/ldionne/code/hana/test/worksheet.cpp:1411:25: internal compiler error: in cxx_eval_call_expression, at cp/constexpr.c:1358 | |
auto ICE_HERE = __func__; | |
^ | |
/Users/ldionne/code/hana/test/worksheet.cpp:1411:25: internal compiler error: Abort trap: 6 | |
g++: internal compiler error: Abort trap: 6 (program cc1plus) |