Commit Graph
1211 Commits
Author SHA1 Message Date
RabsRincon 6ebefff9b3 Fixes Sentry issue COMPILER-EXPLORER-5W1
Applies formatting to asm-parser.js file too
2020-01-08 10:48:17 +01:00
RabsRincon c34ba450b7 Fixes COMPILER-EXPLORER-5VZ Sentry issue 2020-01-08 10:28:35 +01:00
Matt Godbolt 473f41cbed Slightly over-defensive fix for #1767. Not sure 100% of the original intent... 2020-01-07 22:11:59 -06:00
Matt Godbolt 2feaec45dd Get rid of a var 2020-01-07 22:09:59 -06:00
Matt Godbolt ab87392a45 Work around for older CE instances (e.g. MS's). Closes #1768 2020-01-07 21:23:58 -06:00
Matt Godbolt b5fa4e8453 Fix objdump break. Adds test. Closes #1766 2020-01-07 18:16:02 -06:00
Matt Godbolt 7a920eb23a More async work; and some refactoring 2020-01-06 23:04:49 -06:00
Matt Godbolt c4d7b618b3 Fix up return of postProcess for golang. Fixes #1765 2020-01-06 22:37:23 -06:00
Matt Godbolt 9020ed58db Logs server-side errors; update to latest sentry. See #1765 2020-01-06 22:22:48 -06:00
Ray Imber a255a4a861 Added Monaco editor syntax highlight support for Nim. 2020-01-02 13:31:49 -08:00
Rubén Rincón Blanco 1875d36e25 Merge pull request #1761 from DaemonSnake/master
Nim Fix, change in object file name
2020-01-02 15:31:35 +01:00
bastien penavayre 5d8673de33 Nim Fix, change in object file name 2020-01-02 09:29:27 +01:00
RabsRincon 497f7ed653 * Add nim language support 2020-01-01 15:51:03 +01:00
Rubén Rincón Blanco 8f2829221c Merge pull request #1753 from DaemonSnake/master
Add support for Nim language
2020-01-01 15:38:48 +01:00
Matt Godbolt 3914aee49a Async-i-fy the compiler (#1708)
Async-ify base-compiler

* Adds async to a number of methods
* Breaks 'compile' into a few smaller methods for readability
* Remove a few (seemingly!) unnecessary `Promise.all([x])`
2019-12-31 10:17:25 -06:00
RabsRincon 28069395b6 Properly extend rustc argument parser results 2019-12-27 17:58:47 +01:00
RabsRincon f8b83af8cb Fix rust argument parser with multi flag help comm 2019-12-27 17:48:45 +01:00
RabsRincon 21bf3b235d Add colored output to Rust compilers if supported
As requested in #1755
2019-12-27 16:50:33 +01:00
bastien penavayre 2edc91cefb Nim add set default command as compile instead of compileToCpp 2019-12-26 23:59:20 +01:00
bastien penavayre 3c309a2a37 Nim, move cachefile from input name into function for testing 2019-12-26 17:59:13 +01:00
bastien penavayre 6027190933 Move Nim code from runCompiler to filterUserOptions and remove custom runCompiler 2019-12-26 11:43:49 +01:00
bastien penavayre 3492287638 Add support for Nim language
- Add language
- Adds Nim compiler
- supports js, c, c++ outputs (objc not tested)
- prevent --run option
- Basic test for nim

Todos:
- monaco profile for Nim
2019-12-26 11:03:20 +01:00
Partouf 18172dcc7a fix ir view pane 2019-12-25 21:28:45 +01:00
Partouf 12c54d9d10 conform llvmir result to asmparser result 2019-12-25 21:06:56 +01:00
RabsRincon a89aa3d287 Ensure result.asm is there before demangling
Closes #1741
2019-12-20 03:51:27 +01:00
Matt Godbolt 8c086301c6 Merge pull request #1699 from csordasmarton/jmp_to_labels
Jump to labels in assembly
2019-12-09 21:13:27 -06:00
Rubén Rincón Blanco 7d55f2d21e Merge pull request #1695 from steveire/add-clang-format
Add clang-format tool
2019-12-08 04:14:52 +01:00
RabsRincon 91c3362840 Stop zig from crashing if semver is not set
Closes #1710
2019-12-08 04:08:59 +01:00
RabsRincon f733d6f3cc Make looking for usable text a bit better
It allows more letters, looks closer to the current length
 and has a max try count

Thanks to @jameshamm for a great rundown on what could be done :)

Closes #1706
2019-12-08 02:59:39 +01:00
Stephen Kelly bb66b63746 Add clang-format tool 2019-12-06 22:29:34 +00:00
Márton Csordás 6f6c0dbeb2 Fix review comments of the Jump to label feature
- Use `const` where it is possible.
- Move regexes into variables and give them a name.
- Eliminate `lineNumber` variable and use the length of the asm array.
- Use `updateDecorations()` function to decorate label usages.
- Update and fix test cases.
2019-12-04 20:56:21 +01:00
Matt Godbolt f1ee4abdee Ondra's legendary support is in memoriam Jaroslav Křivánek. 2019-12-04 09:31:06 -06:00
Matt Godbolt 4ddaac18c6 Code simplification 2019-12-03 07:08:04 -06:00
Márton Csordás c1d074d6d5 Parse assembly labels on the serve-side
Parsing the labels on the server-side is more general, more flexible
and it can be easily tested.

- Store label definitions in a map. The key will be the label name and
the value will be the line number where the label definition can be
found.
- For each line get the labels which are used in the given line and
remove labels which do not have a definition.
- Modify the return value of the `processBinaryAsm` and `process`
function to return with the label definition too.
- Demangle the label usages and the label definitions too.
2019-12-01 21:36:21 +01:00
Matt Godbolt 225aa00a9a Merge pull request #1683 from kalray/pr-bundle-comment
Handle K1 MPPA VLIW bundles in assembly
2019-11-30 16:57:44 -06:00
Partouf 26d0f06e19 Merge remote-tracking branch 'matt/master' into difftype 2019-11-29 15:40:44 +01:00
Haze Booth eb3df6f260 Fix ASM output on for the zig compiler 2019-11-27 21:43:59 -05:00
Marc Poulhiès 10cd506b86 Handle K1 MPPA VLIW bundles in assembly
K1 MPPA uses ;; as a bundle separator (same syntax as IA64,
if it gets added to CE someday...).
The bundle separator must be alone on the line, see for example:

```
        ld $r6 = 16[$r20]
        addx8d $r9 = $r2, $r5
        addw $r10 = $r2, -1
        ;;
        addd $r0 = $r6, $r9
        addd $r17 = $r10, 1
        cb.wlez $r2? .L3
        ;;
        copyd $r15 = $r0
        ;;
        maddd $r15 = $r17, -8
        ;;
```

Single ; or ;; followed by any non whitespace before eol still
considered a comment.
2019-11-21 21:08:24 +01:00
Matt Godbolt 7aa1711cda Add a delete method to s3 2019-11-20 07:10:12 -06:00
Partouf 29c863fa07 remove nonsensical warning 2019-11-15 15:01:39 +01:00
Matt Godbolt f53ad05442 Merge pull request #1643 from mattgodbolt/features/cdn
Support serving static content externally
2019-11-15 07:36:02 -06:00
Rubén Rincón 18fa54b8a3 Add mising copyright header on file 2019-11-15 10:01:53 +01:00
Matt Godbolt e9503b2f19 Merge pull request #1679 from dseight/master
Fix path handling for clang-style file directive
2019-11-14 07:31:19 -06:00
Austin Morton 419458530f Support serving static content externally 2019-11-13 23:35:53 -05:00
Austin Morton 9d1c26ea65 Support resolving non-absolute compiler exe values using system path
Closes #1649
2019-11-13 18:31:30 -05:00
Dmitry Gerasimov d09a0ace40 Fix path handling for clang-style file directive
E.g. for such directive

    .file   1 "/home/user" "example.c"

now will be constructed valid path:

    '/home/user/example.c'

instead of this broken path:

    '/home/user/ "example.c"'
2019-11-14 01:47:20 +03:00
Matt Godbolt a818f5eaa6 Handle non-label-name lines in VC. Fixes #1337 2019-11-11 22:35:12 -06:00
Patrick Quist ba7d53572c Merge pull request #1616 from mattgodbolt/staticlibs
Static library linking support
2019-11-06 14:47:46 +01:00
Rubén Rincón ae222b4a9d Simplify fontScale behaviour
Closes #1660
2019-11-05 09:36:18 +01:00
Matt Godbolt e63645cdad Configurable environment passthrough.
You can now configure which of the host's environment variables are
passed through to the compilers with compiler explorer property
environmentPassThrough. Defaults to `LD_LIBRARY_PATH`, `HOME` and `PATH`,
as before.

Also upgrades lint to ECMA 2018.

Fixes #502
2019-11-04 22:23:10 -06:00