From 7c13e9221c4e58f95151864b5db87363a38734b2 Mon Sep 17 00:00:00 2001 From: Alexander Slesarev Date: Mon, 31 Aug 2020 11:43:40 -0600 Subject: [PATCH] Added JCC bugfix flag to clang. (#266) --- README.md | 2 +- common/commands.mk | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2cab37f6..d42c9386 100644 --- a/README.md +++ b/README.md @@ -58,11 +58,11 @@ Testing brainfuck implementations using two code samples (bench.b and mandel.b). | Nim Clang | 1.94 ± 00.02 | 2.38 ± 00.06 | 35.54 ± 00.86 | | LDC | 1.94 ± 00.03 | 2.95 ± 00.04 | 35.44 ± 00.41 | | Kotlin | 1.96 ± 00.01 | 40.54 ± 00.32 | 35.65 ± 00.51 | +| C Clang | 2.05 ± 00.02 | 0.51 ± 00.03 | 41.16 ± 01.39 | | GDC | 2.07 ± 00.03 | 6.29 ± 00.06 | 37.75 ± 00.69 | | Vala Clang | 2.11 ± 00.19 | 3.59 ± 01.26 | 38.82 ± 03.23 | | Rust | 2.18 ± 00.02 | 1.98 ± 00.09 | 39.89 ± 00.79 | | GCC Go | 2.26 ± 00.05 | 21.95 ± 03.91 | 42.04 ± 00.93 | -| C Clang | 2.31 ± 00.02 | 0.52 ± 00.03 | 40.96 ± 00.85 | | Java | 2.43 ± 00.04 | 38.65 ± 00.16 | 44.16 ± 00.91 | | C# .NET Core | 2.49 ± 00.02 | 34.59 ± 00.08 | 45.14 ± 00.96 | | Go | 2.56 ± 00.01 | 3.05 ± 00.36 | 44.08 ± 01.05 | diff --git a/common/commands.mk b/common/commands.mk index 584f784f..5c5ab1cb 100644 --- a/common/commands.mk +++ b/common/commands.mk @@ -1,6 +1,5 @@ GCC_FLAGS := -O3 -Wall -flto -Wa,-mbranches-within-32B-boundaries -# Eventually, enable clang optimization: --x86-branches-within-32B-boundaries -CLANG_FLAGS := -O3 +CLANG_FLAGS := -O3 -mbranches-within-32B-boundaries LIBNOTIFY_FLAGS := -I../common/libnotify ../common/libnotify/target/libnotify.a NIM_FLAGS := -d:danger --verbosity:0 --opt:speed --hints:off VALAC_FLAGS := --disable-assert -X -O3 --pkg gio-2.0 --pkg posix