Commit Graph
707 Commits
Author SHA1 Message Date
Simon Sobisch 634f9a13ae GnuCOBOL: always pass -g to the C compiler (#5504)
As this is done with other compilers like C/C++ and doesn't add extra
code (like plain `-g` would).

(this supersedes the broken #5503)
2023-09-23 08:53:14 +02:00
Prabhat Sachdeva cc33ad1a4e Add mode with no syntax highlighting to monaco editor. (#5490)
If `languageId` is not defined, the syntax highlighting in the Monaco
editor panel defaults to **ASM**.
This pull request creates a `no-highlight-mode` with **no syntax
highlighting**. This mode can be used when the syntax highlighting is
not required.

In this PR I've also updated the result of Carbon Language to use this
`no-highlight-mode` as the **ASM** syntax highlighting wasn't matching
the execution trace of Carbon Explorer.
2023-09-22 09:54:41 -04:00
Jeremy Rifkin fb147126e8 Fix WSL for systems that don't have windows paths (#5480)
Attempt to fix #5476. As far as I can tell `process.env.winTmp` is
needed just for windows executables and WslVcCompiler. It should be
possible to just ignore the exec error and continue. If for some reason
the user doesn't have windows paths in their WSL but does want to run
windows executables they can pass `-tmpDir`.
2023-09-16 15:59:26 -04:00
Justin Bogner 6a5a78f3b8 Introduce ClangDxcCompiler for HLSL (#5388) 2023-09-04 14:14:18 +02:00
Cassandra Beckley 94dae50be0 Use the SPIR-V parser for DXC SPIR-V output (#5418) 2023-09-04 13:59:52 +02:00
Matt Godbolt ef8e591cb0 Merge branch 'main' into edg-support 2023-09-03 12:49:28 -05:00
Jeremy Rifkin 63ac0a3308 Also specify MSAN_SYMBOLIZER_PATH for clang (#5424) 2023-08-27 11:27:21 -04:00
Matt Godbolt 6173492723 Merge branch 'main' into edg-support 2023-08-25 12:59:53 -05:00
Steve 58697ccf38 Improve the disassembly format for dotnet (#5419)
This is an improvement that can improve the disassembly format to make
it more friendly to a diff checker.

All versions tested:

net6.0:

![image](https://github.com/compiler-explorer/compiler-explorer/assets/14960345/1ae4fda5-db73-4703-88f9-abd640b4e5e1)

net7.0:

![image](https://github.com/compiler-explorer/compiler-explorer/assets/14960345/6dfe1a74-a09a-40c4-b586-425b8ee84b12)

trunk:

![image](https://github.com/compiler-explorer/compiler-explorer/assets/14960345/36247f19-1e26-4bb8-ab1d-040d7145854f)
2023-08-25 06:48:18 -05:00
Steve 6601a41423 Bring back crossgen2 (#5415)
It turns out we still need crossgen2 for net6.0.
So bring crossgen2 back for net6.0 only.

Also fix some bugs around `indexOf`.

No image rebuilding is required.
2023-08-24 19:23:53 -05:00
Steve 564ffed567 Use corerun and DisassemblyLoader for dotnet (#5391)
Depends on https://github.com/compiler-explorer/dotnet-builder/pull/4

- Use corerun instead of crossgen2 to do disassemble
- This can skip emitting actual executable by crossgen2 and speed up the
compilation
- Filter disasm to only show disasm for user code

We need to rebuild images for old compilers.
2023-08-23 11:03:36 -05:00
kasperk81 b3fd6f5c5c dotnet: show the actual error when compilation fails (#5410)
instead of ENOENT from the next line (fs.readFile), return the failed
compilation result.
2023-08-22 19:30:16 -05:00
kasperk81andkasperk81 k c8e70680c5 add dotnet aot support for linux-x64 (#5345)
limitations:

* linux-x64 only
* no execution support

all of which can be added later after this initial support

---------

Co-authored-by: kasperk81 k <3082615+kasperk81@users.noreply.github.com>
2023-08-21 21:19:17 -05:00
Spydr 07d9995ddf Fix V .vmodules path (#5385)
Currently, the `.vmodules` path is not writable. This PR changes the
path to a writable (temporary) directory.

Putting `.vmodules` into the compilation folder seems to be not that
simple since the env vars are created before a compilation folder is
assigned.
2023-08-17 16:08:28 -05:00
Matt Godbolt d2a6dc251d Update remaining packages and pre-emptively bump the .vXX hack; reformat 2023-08-15 22:35:24 -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
Patrick Quist 49506f1cd6 Nvc++ deviceview support (#5324) 2023-08-09 13:06:06 +02:00
quic-rvarghesandRyan Sam Varghese ab1d965289 New Compiler: Hexagon-clang (#5330)
**Related to:** compiler-explorer/infra#1061

**Goal:-**
To enable back-end support for hexagon clang compiler so that it can be
used on the Compiler Explorer's website
([https://godbolt.org/.](https://godbolt.org/)) This will be
particularly useful to people working on Hexagon Digital Signal
Processor (DSP) developed by Qualcomm Technologies.

**Information about Hexagon DSP:-**

[https://developer.qualcomm.com/software/hexagon-dsp-sdk/dsp-processor](https://developer.qualcomm.com/software/hexagon-dsp-sdk/dsp-processor)

Co-authored-by: Ryan Sam Varghese <rvarghes@qti.qualcomm.com>
2023-08-07 18:33:45 -05:00
Matt Godbolt 782c16e1ca Return null instead of undefined on failure to parse 2023-07-22 18:33:59 -05:00
Wyatt Childers 9fbeaeda37 Initial EDG support 2023-07-19 13:53:30 -04: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