Commit Graph
688 Commits
Author SHA1 Message Date
Matt Godbolt 782c16e1ca Return null instead of undefined on failure to parse 2023-07-22 18:33:59 -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
Antonio Malara 1feaa088b4 Add LLVMOptPipelineView support for Swift compilers (#5241)
This PR adds support for the LLVM optimisation pipeline view pane for
the Swift family of compilers.
2023-07-09 09:00:22 -05:00
Guo Ci d1bb248206 Fix #1830 (#5201) 2023-07-07 00:24:48 +02:00
Marc Poulhiès 3e204e204f ada: add stack-usage support for GNAT (#5218)
GNAT is gcc based, but its --help doesn't show all of gcc's option and
the base compiler doesn't detect its support for -fstack-usage.

Force the support (currently we only have GNAT as an Ada compiler).

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-06-30 00:52:42 +02:00
Jeremy Rifkin 4260313e13 Common utilities and type work (#5200)
This PR refactors some common utilities out of lib/ and into shared/ and
eliminates some use of underscore.js, as well as general type
improvements done along the way.
2023-06-28 20:13:10 -04:00
Jeremy Rifkin ddb4ed8c05 Improve the type of ExecutionOptions.env (#5206) 2023-06-28 08:15:24 -04:00
Jeremy Rifkin 3638f6026c Support control flow graphs for more compilers (#5209)
This PR should make cfg generation available for all clang compilers,
icc, and any compiler whose instructionSet property is x86, arm, or
llvm.
2023-06-28 08:07:33 -04:00
Jeremy Rifkin a9bd0a1f80 Add the movfuscator (#5193)
Resolves #985

Builder: https://github.com/compiler-explorer/misc-builder/pull/65
Infra: https://github.com/compiler-explorer/infra/pull/1041
2023-06-26 20:28:09 -04:00
Guo Ci f9ce1b35ef resolve #5014 (#5197) 2023-06-25 00:15:20 +02:00
Patrick Quist 76beb84b2e C64 emulation (#5198) 2023-06-23 12:21:28 +02:00
Jeremy 2c60696d3d Add temporary triage for #2986 2023-06-21 10:32:57 -04:00
Matt Godbolt cf89c52f3a Fix #5183 2023-06-19 22:50:58 -05:00
Jeremy Rifkin 122a0047e8 Add instruction set info for generating arm control flow graphs (#5158)
Fixes #4410

On top of #5156
2023-06-19 22:13:15 -04:00
aliaegikandRubén Rincón Blanco d07c31f569 New C3 compiler options (#5122)
Regarding the issue discussed in
https://github.com/compiler-explorer/compiler-explorer/pull/5086#issuecomment-1578715708

---------

Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
2023-06-19 20:53:00 -05:00
Jeremy Rifkin 3716cbd446 Support control flow graphs from the IR pane (#5155)
On top of #5154


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/7bf25b5b-8988-42ff-9d8c-233e6d817997)

Additionally, while I was here, added support for multiple control flow
graphs to be opened from one compiler instead of disabling the button
once one is opened. And improved the implementation for how this was
done for the llvm opt pipeline.

And did some type work along the way.
2023-06-19 21:48:20 -04:00
Alex D a34f81241c Added TypeScript Native ver 0.0.35-alpha (#5136)
Added TypeScript Native ver 0.0.35-alpha
2023-06-19 20:26:35 -05:00
Guo Ci 7651874a98 add Stack Usage Viewer (#5160)
For #4834
2023-06-19 20:26:15 -05:00
Jeremy Rifkin 1d44b6d2b4 War on @ts-expect-error (#5171)
Following up on #5170, let's just get rid of @ts-expect-error and
@ts-ignore completely in the codebase. (Well almost)
On top of #5170
2023-06-18 15:21:50 -04:00
Jeremy f8d95a33ec Quickfix for #5111 2023-06-11 21:33:01 -04:00
Jeremy Rifkin 60ce06b02f Improve cache handling on the frontend, cache executions on the backend, and improve controls on the exec pane (#5111) 2023-06-11 19:10:30 -04:00
Jeremy Rifkin 910d69f233 Turn on @typescript-eslint/await-thenable (#5131) 2023-06-11 18:09:35 -04:00
Jeremy Rifkin 34292238c1 Identify unused imports during lint (#5130) 2023-06-11 17:35:59 -04:00
Jeremy Rifkin 10851a1dda LLVM IR pane improvements (#5078)
This PR will add filtering and other output options to the LLVM IR pane


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/ffc865ea-b3fa-441f-b501-4ec4b68e261f)

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/936be326-b55e-40cd-ba47-22b121c1acfb)


Closes #5062
Related to #5045
2023-06-11 17:00:53 -04:00
Matt Godbolt 786a284b6a Fix formatting 2023-06-06 21:16:53 -05:00
sameeranjoshiandJeremy Rifkin db07dd2095 Update mlir.ts for issue #5902 (#5102)
Fix for 
https://github.com/compiler-explorer/compiler-explorer/issues/5092

---------

Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
2023-06-06 21:13:30 -05:00
Patrick Quist 4a31620819 bugfix asm arg overrides can be undefined (#5107)
Fixes #5093
2023-06-06 21:13:29 -05:00
Patrick Quist 13712bce4b Fix cobol binary modes and objdump (#5110)
Fixes #4857
2023-06-06 21:13:29 -05:00
Patrick Quist 49806d62c8 fix intel notation for cobol (#5109) 2023-06-06 21:13:29 -05:00
aliaegikandRubén Rincón Blanco 2703d67b7c 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-06 21:13:29 -05:00
ASDAlexander77 748e66a415 using asSafeVer and cleanups 2023-06-06 20:43:43 +01:00
ASDAlexander77 eb65885ab7 improved version control 2023-06-06 19:43:54 +01:00
ASDAlexander77 7e45fa9f2e double quote fix 2023-06-01 18:57:19 +01:00
ASDAlexander77 93b6b4b96f support for tsc version 33 and above 2023-06-01 17:22:42 +01:00
Patrick Quist 6836e9c4a6 add support to query and parse c standard versions (#5082)
Fixes #5071
2023-05-30 21:19:37 -05:00
fodinaborandMatt Godbolt e28e67d972 Add new "Debug intrinsics" filter. (#5045)
For now, this removes all `llvm.dbg.*` calls from LLVM IR. This is
useful to keep coloring the line correspondence between source and IR,
while not polluting the IR with the debug intrinsics.

Admittedly, I don't have much of a clue of what's going on here, so I
might be missing obvious adaptions (e.g. can we disable this for all
non-LLVM compilers for now somehow?).
Also, not really a Node.JS testing wizard either... 🤷🏼 

Just wanted this really bad for a workshop that's coming up soon ^^

Only tested with my system's default `clang` for now.

Fixes #5044

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-05-22 22:35:01 -05:00
Patrick Quist 079d495757 Compiler overrides (#5001) 2023-05-16 03:53:57 +02:00
Matt Godbolt fe61c870fa A somewhat hacky way of making circle link against clang trunk's libs (#5024) 2023-05-09 22:09:54 +02:00
Patrick Quist b262531cdd Offer timetrace json to view somewhere (#4967) 2023-04-23 11:29:52 +02:00
Patrick Quist 78cc0ebd0e solidity dont fail on missing generatedSources (#4968) 2023-04-19 22:01:48 +02:00
Patrick Quist b889cd6bc3 fix golang env vars (#4975) 2023-04-19 22:01:31 +02:00
David Hewitt e855352d38 vala: Add an option to set PKG_CONFIG_PATH envvar (#4959)
In conjunction with
https://github.com/compiler-explorer/vala-builder/pull/1, this should
fix #4958

Vala uses `pkg-config` to locate libraries to link with and then passes
the relevant args to `CC`, so in the live environment, we need to
provide the `pkg-config` files for the minimum required libraries in the
compiler prefix, and then use this environment variable to allow
`pkg-config` to locate them.
2023-04-17 19:32:49 -05:00
David Hewitt a7da7e83c4 Add the Vala programming language (#4955)
See https://gitlab.gnome.org/GNOME/vala/ for the language repository.

> Vala is a programming language that aims to bring modern programming
language features to GNOME developers without imposing any additional
runtime requirements and without using a different ABI compared to
applications and libraries written in C.
> 
> `valac`, the Vala compiler, is a self-hosting compiler that translates
Vala source code into C source and header files. It uses the GObject
type system to create classes and interfaces declared in the Vala source
code.
> 
> The syntax of Vala is similar to C#, modified to better fit the
GObject type system.

I've also created https://github.com/davidmhewitt/vala-builder based on
https://github.com/compiler-explorer/python-builder and tested that it
can build tarballs of arbitrary versions of Vala. I'd be happy to
transfer the ownership of this repository, or feel free to clone it into
the `compiler-explorer` org.

However, I'm a little unsure of how to join up the pieces and get this
Docker builder integrated with the `infra` repository. Let me know where
to go next and I'd be happy to open the relevant PRs.
2023-04-10 22:47:49 -05:00
Jeremy Overesch 445eff5649 Add minimal TI-C2000 compiler support (#4625)
This adds the ability to use TI's C2000 compiler with basic directive filtering and assembly code parsing.
2023-04-05 11:24:47 -05:00
Matt Godbolt 54a99f6d51 Upgrade all minor versions; format; bump sonar and css minimizer (#4920) 2023-04-01 20:29:06 -05:00
zebrapurringandzebrapurring 34bbde880c Support configuring extra arguments for the demangler, objdumper and execution wrapper (#4883)
Some toolchains require passing non-standard, mandatory arguments to the
CLI tools in order to execute them (configuring licenses, selecting CPU
targets, etc.). This PR allows configuring extra command-line arguments
for the demangler, object dumper and the execution wrapper. The version
flag argument has been refactored into an array, so that more than one
argument can be passed, if necessary.

The changes are fully backwards compatible.

Co-authored-by: zebrapurring <>
2023-04-01 23:49:22 +02:00
Gaurav Gautam 3c58187cf9 Add d8 for disassembling javascript (#4721)
https://github.com/compiler-explorer/compiler-explorer/issues/264
2023-04-01 16:22:21 -05:00
Marc Poulhiès 6f7218a128 Initial support for GCC cobol (#4908)
Support for GCC cobol snapshot for external repository (until it is
merged in GCC, someday).

fixes https://github.com/compiler-explorer/compiler-explorer/issues/4893

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-03-29 10:17:44 +02:00
Patrick Quist 21d071a42a Limits + windows linking (#4898) 2023-03-23 02:25:20 +01:00
Patrick Quist 7d192ccde1 add properties and test for cewrapper (#4761) 2023-03-18 11:46:27 +01:00