Add support for the Spice programming language.
Spice (`spicelang`) is a simple, AOT compiled, LLVM-based systems
language with focus on practicality and performance.
**Key features of Spice**
- simplicity - see what you get aproach with batteries included
- performance: As Spice uses LLVM as its primary backbone, it competes
with the performance of other LLVM-based compilers
- enhanced safety: Spice implements an enhanced safety mechanism, which
includes builtin heap type with auto-free and more
- cross-compile support: Currently x86_64, AArch64 and wasm32 are
supported cross-compilation targets, but more to come
- Pretty good C and C++ interop
**Links**
- Source code: https://github.com/spicelang/spice
- Website: https://spicelang.com
- Playground (own CE instance): https://play.spicelang.com
- Infra PR: https://github.com/compiler-explorer/infra/pull/1229
**Things this PR addresses**
- General support for Spice
- Three code examples
- Spice mode (Syntax highlighting)
- Opt pipeline support
- LLVM mca and osaca support
`c++filt` was taken sometimes from gcc-13.1.0 and sometimes from
gcc-snapshot, I took `llvm-cxxfilt` from just clang-trunk.
This PR is _just for clang C/C++ compilers_. Maybe it's better for some
other (non C/C++) llvm based compilers? Suggestions are welcome.
clang trunk for C was using gcc-9, which caused mismatch between
compiler and actual binutils supports:
/opt/compiler-explorer/gcc-9.2.0/lib/gcc/x86_64-linux-gnu/9.2.0/../../../../x86_64-linux-gnu/bin/ld:
warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported
GNU_PROPERTY_TYPE (5) type: 0xc0008002
This is not the case in the C++ config where we correctly use nightly
gcc.
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
And enable exectution for flang-new.
This assumes that LLVM flang is installed from `ninja install` rather
than a package manager, since I'm not sure any have it yet. So
it's `/usr/local/bin` instead of `/usr/bin`.
gfortran I've assumed is in `/usr/bin` to match the existing
settings in the file.
I removed the `ldPath` settings that the `amazon` config has because:
* Most of them refer to /opt/compiler-explorer.
* Removing the rest didn't prevent me from linking/running binaries.
flang-new used to require a seperate libpgmath library to produce
exectuables but this requirement has been removed so I've enabled
execution.
Python 3.12 has been released a while ago, but it seems that it’s not
yet been added to Compiler Explorer.
This PR also changes the license link to link to the actual CPython
license.
Corresponding infra PR:
https://github.com/compiler-explorer/infra/pull/1207
---------
Co-authored-by: Matt Godbolt <matt@godbolt.org>
Adds Dex2OatCompiler, which applies to the Android Java and Android
Kotlin languages. Dex2OatCompiler runs on .dex files output by
D8Compiler, which in turn runs on .class files output by JavaCompiler or
KotlinCompiler. A parser has been added for dex2oat optimization passes.
Fixes#5351
I just copied the changes in #4358 and checked that it works locally
with
```sh
make debug EXTRA_ARGS='--language zig'
```
although I had to make the following changes to get it to work locally:
```diff
diff --git a/etc/config/zig.defaults.properties b/etc/config/zig.defaults.properties
index 008aa215..f4db084c 100644
--- a/etc/config/zig.defaults.properties
+++ b/etc/config/zig.defaults.properties
@@ -1,4 +1,4 @@
-compilers=/usr/bin/zig
+compilers=/opt/homebrew/bin/zig
supportsBinary=true
compilerType=zig
objdumper=objdump
diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts
index b0d55432..8e33767f 100644
--- a/lib/compilers/zig.ts
+++ b/lib/compilers/zig.ts
@@ -44,6 +44,7 @@ export class ZigCompiler extends BaseCompiler {
super(info, env);
this.compiler.supportsIntel = true;
this.compiler.supportsIrView = true;
+ this.compiler.semver = '0.11.0';
this.self_hosted_cli =
this.compiler.semver === 'trunk' ||
```
The previous highest version was 2.35.1 and between then and 2.38,
support for many new extensions has been added.
This includes the Scalable Vector Extension (SVE), it's own extension
SVE2, memcopy acceleration (MOPS) and many more.
I checked the version number by installing locally:
```
/opt/compiler-explorer/arm64/gcc-13.2.0/aarch64-unknown-linux-gnu/bin$ ./aarch64-unknown-linux-gnu-as --version
GNU assembler (GNU Binutils) 2.38
```
So that we can handle the new encodings, the objdumper for this category
is also updated to the same version.