Commit Graph
100 Commits
Author SHA1 Message Date
Nazım Can Altınova d8371ca866 Add the "nix" Rust crate (#6472)
This PR fixes #6212 and infra PR is here:
https://github.com/compiler-explorer/infra/pull/1299

It adds the nix crate that will be useful when users need to access more
user friendly *nix APIs.
Thanks!
2024-05-13 20:30:31 -05:00
Adam Thibert e630346d2e Add the phf crate for Rust (#6375) 2024-04-19 23:02:03 +02:00
Matthew Guidry 102b253f57 Add one dark theme (#6324)
Adds a new theme based on the One Dark theme from the Atom text editor.
Adds a new line highlighting theme "Soft Dark Rainbow" that works better
with the One Dark theme.
2024-04-06 23:30:39 -05:00
Khyber Sen b7e2e5c3c3 Add zerocopy crate (#6284) 2024-03-26 00:52:09 +01:00
Andrea TomasiandMatt Godbolt 4d39fdddb8 View Erlang jitted assembly (#6104)
Hi, this PR adds a way to view the assemply code of Erlang code.

Since OTP 24 inside the Erlang VM there is a jitter that runs while we
load the code.

The standard way to dump the asm code is to pass an option during the
startup. The main issue is that this triggers the dump of all the
modules we are loading (and it is slow).
To avoid this I'm using some instrinsics of OTP 26 but at least we dump
only what we need.

(I'm planning to add it to `infra` and then to awmason

Some references:
-
https://www.erlang.org/blog/otp-26-highlights/#improvements-in-the-erlang-compiler-and-jit
-
https://github.com/erlang/otp/blob/master/erts/emulator/beam/erl_bif_info.c#L5255

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2024-02-12 21:49:03 -06:00
Julian 99559780bf Add UPMEM's DPU clang (#5950) 2024-01-20 18:05:14 +01:00
Anirudh Sundar Subramaniam c3f8f8665b Handle ir and machine functions separately in OptPipeline (#5902)
This patch makes a small change in how functions are handled while
parsing LLVM opt pipeline output. Specifically, it differentiates
between IR function and machine function, and while checking for the
close of function, it only checks if the corresponding function is open.

This was needed because in some targets like hexagon, the machine
functions could contain `BUNDLE`s as part of the dump and `BUNDLE`s are
also represented with opening and closing braces ({}). This was causing
assertion because the close brace for a BUNDLE was considered to be a IR
function close statement.
2024-01-08 15:32:45 -06:00
Weile 5bcfd84bac Add taskflow (#5790)
Adds [taskflow](https://github.com/taskflow/taskflow) as a C++ library.

Related PR: https://github.com/compiler-explorer/infra/pull/1164

Note:
taskflow is a General-purpose Parallel and Heterogeneous Task
Programming System.

taskflow helps users quickly write parallel and heterogeneous task
programs in modern C++.

taskflow has been widely used in many companies and academic institutes,
like Cruise, Nvidia, AMD, NSF, etc.

taskflow has appeared in various C++ conferences, including
[CppCon'20](https://www.youtube.com/watch?v=MX15huP5DsM) and
[MUC++](https://www.youtube.com/watch?v=u8Mc_WgGwVY)
2023-11-22 18:08:11 -06:00
Andrew Brey 26ab4e6d4b feat(devcontainers): add the ability to use GitHub Codespaces and VS Code remote containers (#5631) 2023-10-22 12:13:26 +02:00
Rupert TombsandJeremy Rifkin 83e06b0424 Update .js to .ts in documentation (#5558)
While reading the (excellent) documentation here, I noticed a few stale
references to `.js` files that are now implemented in TypeScript.

* Update `*.js` to `*.ts` in Markdown documentation.

* Update `app.js` to `out/dist/app.js` in
`docs/SystemdSocketActivation.md`.
_I managed to follow these instructions and locally run Compiler
Explorer through socket activation after that change._

* Update `*.js` to `*.ts` in the GitHub labeller config
`.github/labeler.yml`.
_Also correct some misnamed files here. I have checked the new version
with `ls $(grep -E "^ - " .github/labeler.yml | sed "s/ - //g")`. If I
were more familiar here, I would have liked to add a similar check to
the automated tests._

- Sheepishly add myself to the contributors list, despite this being a
tiny find-and-replace change.

---------

Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
2023-10-04 20:27:06 -04:00
Guo Ci 51f59d1564 add name to CONTRIBUTORS.md (#5537) 2023-09-30 21:13:19 +02:00
AliG 1efe5a3eaf Add ForCompile project to API.md. (#5516) (#5522)
ForCompile - A Fortran library to access the API

by @gha3mi.
2023-09-26 07:07:32 -05:00
Marc Auberer fb26b2d9a1 Update checkout action to v4 (#5479)
Upgrade checkout action to v4 to make use of Node 20.
Node 16, which v3 is using, reaches end of life on 2023-09-11.
2023-09-16 17:13:45 -05:00
SpydrandMatt Godbolt 0bf769e245 New Language: V (#5297)
V (`vlang`) is a simple, fast and safe general purpose programming
language compiling to human-readable C.

#### Key features of V:

- simplicity, "only one way to do things"
- performance as fast as C
- safety: no null, no globals, no undefined behavior, immutability
- automatic C to V translation, good C interoperability
- hot code reloading
- flexible memory management (GC by default, manual, arena allocation,
autofree)
- other compilation backends like JavaScript, `native` (wip), `wasm`
(wip) or interpreted

#### Links:

Source code: https://github.com/vlang/v
Official website: https://vlang.io
Web playground: https://play.vlang.io/

infra PR: https://github.com/compiler-explorer/infra/pull/1058

#### Things this PR adds:

- General support for V
- Code inspection for the C, Go and JavaScript backends
- Support for the v formatter `v fmt`
- Some V example code

#### Things not implemented:

- Support for binary-output backends like `native` and `wasm`
- Support for running programs

<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-08-15 22:16:36 -05:00
Simon Sobisch a4246b3814 cobol: GnuCOBOL 3.2 (#5379)
infra PR at https://github.com/compiler-explorer/infra/pull/1071
2023-08-14 22:33:42 -05:00
Jorge Lopez a90dfab5f5 Add a line break before kill (#5258)
A fix for
https://github.com/compiler-explorer/compiler-explorer/issues/5233
2023-07-15 10:37:01 -05:00
Mauro Baladés a33dd9de16 Added snowball lang (#5245)
# Language name
Snowball 🐱 

Language version
Snowball v0.0.7-beta

## Language homepage
Soon™️ 

Not the websites but some (WIP) documentation:
https://snowball-lang.gitbook.io/docs/

Compiler homepage

https://github.com/snowball-lang/snowball

Compiler version
v0.0.7-beta

Motivation

With a myriad of features to offer, Snowball boasts object-oriented
programming, memory safety, built-in functions for enhanced
productivity, and faster execution than other languages. Plus, its
garbage collector and unit testing make it a comprehensive tool for
developers.

> It's still in development but it's development is fast
2023-07-10 20:38:55 -05:00
Vlad SerebrennikovandVlad Serebrennikov 36b8b6c227 Add -gcc-toolchain option for Clang 3.1, 3.2, and 3.3 (#5104)
This patch specifies path to GCC toolchain for those ancient Clang
versions. Ancient Clang versions are still very useful when revisiting
equally ancient bug reports, or figuring out when an ancient C or C++
defect report was implemented.

Note that modern spelling of this option is `--gcc-toolchain=`, which is
used for Clang 3.4 onwards, but those ancient versions has it in a
slightly different form.

Co-authored-by: Vlad Serebrennikov <serebrennnikov.vladislav@gmail.com>
2023-06-05 20:28:52 -05:00
aliaegikandRubén Rincón Blanco 91334b9d9b New Language: C3 (#5086)
Related to: https://github.com/compiler-explorer/infra/pull/1017

C3 is a system programming language based on C. It is an evolution of C
enabling the same paradigms and retaining the same syntax as far as
possible.

Design Principles:
Procedural "get things done"-type of language.
Try to stay close to C - only change what's really necessary.
C ABI compatibility and excellent C integration.
Learning C3 should be easy for a C programmer.
Data is inert.
Avoid "big ideas" & the "more is better" fallacy.
Introduce some higher level conveniences where the value is great.

You can try it out live on its tutorial website:
https://www.learn-c3.org
Source code: https://github.com/c3lang/c3c

---------

Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
2023-06-02 08:08:57 -05:00
Johel Ernesto Guerrero Peña c76b16ef69 lang(cpp2): improve highlighting (#5027) 2023-05-09 19:18:57 +02:00
Mohammed Keyvanzadeh abf92f10f6 tools: update GitHub Actions workflows (#4943)
- Update the actions in the GitHub Actions workflows to their latest versions.
- Run the workflows on the latest versions of the platforms where appropriate.
- Set the `check-latest` field of the `actions/setup-node` action to `true` to use the latest release of the specified Node.js version instead of using the cached one when there's a new release available.
- Explicitly specify the action versions instead of using the `latest` tag.
2023-04-05 11:24:31 -05:00
Madhur Chauhan a45ea37c75 update pahole name (#4441)
* update pahole name
2022-12-15 16:11:23 -06:00
Sebastian Büttner fef60ac025 Add missing data definition directives (fixes #4275) (#4277) 2022-11-12 09:04:38 +01:00
Cory BloorandPatrick Quist e670523ddd Add ROCm Clang and HIP to CUDA (#4097)
* Add ROCm Clang and HIP to CUDA

* Always include hip/hip_runtime.h

The need to include <hip/hip_runtime.h> and/or <hip/hip_runtime_api.h>
in HIP code before using HIP features is one big difference between
HIP and CUDA. Manually adding it to the command-line here is not ideal,
but the alternative is that the CUDA sample code will be broken by
default when a HIP compiler is selected.

This is perhaps an argument for making HIP a separate language in
compiler explorer, but there's pros and cons to both approaches. I'm
not sure which approach is best, but the existing HIP support that I
built upon was based on using CUDA as the language.

* Add hip-amd to CUDA libs

* Fix id collsion and drop --offload-arch

* Drop trunk compilers

The nightly builds of ROCm Clang and vanilla Clang lack both device
libraries and the HIP library. Their ability to compile HIP code is
very limited without those, to the extent that they will not be able
to build the example code without changes.

I suspect that it's possible to fix those issues, but it may be less
confusing to drop them from the compiler list until they are fully
functional.

* Add self to CONTRIBUTORS.md

* Restore hiptrunk compiler

Put the hiptrunk compiler back how it was, so that the addition of the
HIP libraries is a purely additive change in functionality. However,
mark hiptrunk as hidden so that it is not visible by default.

Co-authored-by: Patrick Quist <partouf@gmail.com>
2022-10-10 21:09:27 -05:00
Jackson Machado 2bc257d89d docs(api): improved clientstate API documentation describing need for unicode conversion (#4114)
* docs(api): improved clientstate API documentation describing need for unicode conversion

* docs: improve CONTRIBUTORS.md
2022-10-10 13:40:06 +02:00
Fábio de Souza Villaça Medeiros c2e9aabfd7 Add basic support for Hook programming language (#4075)
* Add basic support for Hook programming language
2022-09-25 15:06:02 -05:00
J. Ryan Stinnett 44aa191cad Add debug info filter option to LLVM opt pipeline viewer (#3987)
* Add debug info filter option to LLVM opt pipeline viewer

* Add MIR debug info pseudo-instructions to filters

* Use mixin for LLVM opt pipeline options

This fixes a few templating errors from the more verbose version.

* Add name to contributors

* Generalise dbg call filter
2022-08-24 20:16:48 -04:00
Mike UrbachandPatrick Quist 16b06027f5 Add basic CIRCT compiler support. (#3917)
* Add basic CIRCT compiler support.

This adds basic support for CIRCT as requested in #3825. The addition
is based on the similar additions for MLIR in #3733 and #3770.

* Update path and rename compiler in circt.amazon.properties.

* Update circt.amazon.properties

Co-authored-by: Patrick Quist <partouf@gmail.com>
2022-07-28 23:29:10 +02:00
Christopher Smyth a5c45b6f0b Pony Lang Config (#3855) 2022-07-10 21:58:19 +02:00
Patrick Quist 5452166ae1 Toit (#3808) 2022-06-24 22:07:40 +02:00
Ofek 29b6e4a462 Fix #3275 : move from compiler-opt-info to compiler-opt-info2 (#3615)
* Fix #3275 : move from compiler-opt-info to compiler-opt-info2

* Add OfekShilon to contributors

* Migrate llvm opt-info processing from a lib inside CE

* Add MIT license text to new file
2022-05-04 18:16:34 +02:00
A S E 943af8f831 add a view for Haskell STG intermediary output #3571 (#3585) 2022-04-28 09:53:11 -05:00
Anders-T | 0x80.eth fb35d64a92 Fix Solidity compilers and line numbers in versions 0.4.x - 0.8.x (#3561)
* fixing compilers 0.4.x - 0.8.x

* update contributors file
2022-04-26 04:20:13 +02:00
m8mble 1ac1664294 Support fmt 8.[01].1 (#3438) (#3490)
Following 1e3da6eefd as a blueprint.
Verified mp-units uses fmt v8.1.1 in trunk.
2022-04-02 16:16:37 -05:00
Arsenic 9a75a7a1d6 Add examples for CUDA (#921) (#3439)
- Add examples for CUDA
- Update CONTRIBUTORS.md
2022-03-14 16:21:13 +01:00
Jeremy Rifkin 74efcfa754 Preprocessor output panel (#3330) 2022-02-11 15:42:41 +01:00
Julien Marrec 0a286837e5 add jsoncpp 1.9.5 (#3290)
* Add jsoncpp 1.9.5

* Add to contributors.

I inserted where I should have ended up, first PR was March 29, 2021
2022-01-30 10:39:35 -06:00
Steve 0a3aadbe80 Add support for C#, F# and Visual Basic (#3168) 2022-01-29 16:16:27 +01:00
Haneef Mubarak 7b7c3e1a2a Enable gemmlowp C++ header-only lib on CE site (#3228) 2022-01-25 08:39:29 -06:00
Gregory Anders 7f0bc32ae4 API: Change 'filters' option to be additive (#3206) 2021-12-28 15:35:46 +01:00
mbitsnbites 28cf53878c Add GCC compiler for MRISC32 (#3194)
* Add GCC compiler for MRISC32

* Update CONTRIBUTORS.md
2021-12-28 15:33:31 +01:00
Björn Gustavsson 12d27b59b7 Format the output file for Erlang in a nicer way (#3135)
For Erlang, format the output in the same way as the 'S' option
does. To achieve this, we use the `beam_listing` module, which is
undocumented but has been stable for many many years.
2021-11-24 08:30:34 -06:00
Kevin Adler 44c5162add Add support for Microsoft Visual C++ 6 (#2907)
A new compiler type 'win32-vc6' has been added, which uses a slightly
modified version of asm-parser-vc to handle assembly output differences
from current Visual Studio output.

In particular, MSVC6 does not output a comment line containing the
function's compile flags prior to the function body. The win32-vc parser
uses this to identify the start of a function and initialize
currentFunction. Instead, we use the regex that identifies a function
name to do this. Otherwise, a TypeError occurs trying to set
currentFunction.name when currentFunction is null.

In addition, MSVC6 only outputs a file comment once (presumably, until a
function from a different file is output). So instead of initializing
currentFunction.file to undefined, it is set to currentFile instead.
This should get set on the first function found in the file, but if not
it is initialized to undefined, so the behavior there would be the same.

Finally, the _DATA and _TLS segments are handled as well as some
additional miscellaneous directives.
2021-09-01 07:50:26 -05:00
Quinton MillerandPatrick Quist 94ecb093a0 Add Crystal support (#2732)
* Add Crystal support

* Fix copyright

* Add ASM parser for Crystal

* Add supportsLibraryCodeFilter

* Update crystal-mode.js

* use baseName

* Force `square` call

* Update default snippet

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-07-08 00:23:48 +02:00
Oleksandr d1da148563 Add initial scala support (#2737)
* Add initial scala support

* Fix scala 3 compiler flags

* Use semver instead
2021-06-29 09:39:06 +02:00
b4ebb47ac2 Add Kotlin/JVM support (#2637)
* Add Kotlin/JVM support

* Update CONTRIBUTORS.md

* Use kotlinc-jvm instead of kotlinc

* Fix alphabetical ordering

* Filter kotlin compiler arguments

Extract user options filtering for java into a separate function to
handle filtering options with extra arguments.
Filter kotlin compiler options: -d, -jdk-home, -kotlin-home, -script, -progressive

* Filter -Xjavac user options

Filter any option that starts with '-Xjavac', as it could be used to pass unwanted options through kotlinc to javac.

* Fix year in copyright

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>

* Add kotlin.amazon.properties

* Add JAVA_HOME to kotlin default exec options

Query per-compiler property 'java_home' and set environment

* Add java_home to kotlin properties

Co-authored-by: Daniel Below <daniel.below@jetbrains.com>
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2021-06-02 22:58:41 +02:00
Johan Engelen 49b64a469b Add Johan Engelen to contributors.md (#2688)
Used `git log --encoding=utf-8 --full-history --reverse "--format=format:%an;%ae"` and uniquing the lines to find where I should place myself in the list. cheers!
2021-05-27 20:13:32 +02:00
Tamir Bahar 71bde50337 Add support for Python optimization flags (#2630)
* Add support for Python optimization flags

* Add CONTRIBUTORS.md entry
2021-05-04 22:37:01 +02:00
Shivam Gupta 6e585fe2fa [README] Fix a link for tinyurl.js (#2551) 2021-04-01 15:06:28 +02:00
okkenator 83f81a31e1 Remove ref and link to the wiki (#2549) 2021-04-01 09:28:38 +02:00