Commit Graph
385 Commits
Author SHA1 Message Date
Patrick Quist ab5e1df5d9 Update gccrs.js 2021-04-30 20:29:13 +02:00
Marc Poulhiès 92fb7ee4df Create GCCRSCompiler class from GCCCompiler (#2632)
Use default GCCCompiler values for GCCRS.
2021-04-30 20:16:04 +02:00
partouf 6bad75e8a6 fix #2623 2021-04-30 16:03:41 +00:00
Rubén Rincón Blancoandpartouf a330cd97f9 Add Zig cc as a C compiler (#2434)
* Add Zig cc as a C compiler

This commit is currently untested - I have no way to do it locally
 (Even though installing Zig is awesomely simple!), so it might be
 pretty broken

Releated issue: #2427

* Move cc to options field

This way fstat works

* attempt at fixing zigcc

* force zig > 0.6 to compile to binary as workaround

Co-authored-by: partouf <partouf@gmail.com>
2021-04-30 16:36:54 +02:00
Matt Godbolt 1d7455e1d5 Re-enable java. Closes #1438 2021-04-26 21:18:15 -05:00
Matt Godbolt b934d999d9 Keep go asm in UPPERCASE. See #2620 2021-04-26 18:34:16 -05:00
Patrick Quist 50481068f8 Link into executable for Assembly language (#2581)
* initial working version

* refactor readelf and ld exes to properties

* minor mac support thing

* refactor to use buildsteps

* support timing for buildsteps

* bugfix gnuas and better error when we can't link

* disable for ARM archs and ptx assemblers
2021-04-13 17:01:11 +02:00
Matt Godbolt 61c296bbe2 Fix lint 2021-04-01 14:11:24 -05:00
Matt Godbolt b3f50c875c Fix up objdump for pascal (thanks @jrtc27) 2021-04-01 09:59:17 -05:00
Jessica Clarke af686e81f7 Support ELF Tool Chain and LLVM objdump (#2538)
* Remove redundant implementations of objdump function

* Add support for ELF Tool Chain and LLVM objdump

Only binutils supports --insn-width and LLVM uses --x86-asm-syntax=intel
rather than -M intel. The default remains binutils.
2021-04-01 08:34:07 -05:00
Patrick Quist c0a45e754c Add CMake API (#2509)
And multifile support. No UI support.
2021-03-22 22:59:03 +01:00
Patrick Quist 8e2de4b887 Let api compile also detect aliased compilers (#2502)
* initial implementation to look for aliases correctly and test

* refactoring

* lintfix
2021-03-19 12:04:29 +01:00
Patrick Quist a0f70d4b0b allow other nasm inputformat, add readelf to assembly (#2481) 2021-03-11 20:35:30 +01:00
Patrick Quist 7edd6d40ac Time all the things (#2462)
* time executeDirect in ms

* measure library download and extract time

* time package download

* download timings when using execution checkbox

* proof of concept timing graph implementation

* use vertical bars for graph

* add objdump time

* add timing for asm parsing

* add timing graph to execution pane as well

* download timings on execution pane

* things
2021-03-11 17:37:57 +01:00
Patrick Quist 29236dd92c Attempt at refactoring to better separate ldpaths and libpaths (#2452)
* attempt at refactoring to better separate ldpaths and libpaths

* fix doc

* fix doc

* bugfix win32 libpaths

* add ldPath to getVersion query environment
2021-03-05 22:40:18 +01:00
Partouf 56e64c1faf fix compiler.options splitting 2021-03-04 22:08:42 +01:00
Matt Godbolt 9cbc894ae4 npm run lint-fix 2021-01-16 09:57:34 -06:00
Patrick Quist 50f6859730 TinyC support (#2365)
* minimal tinycc support

* dont pass -g by default + don't use binary mode on -E

* work around for trunk

* add tinycc trunk
2021-01-02 16:10:05 +01:00
Matt Godbolt 88d8505cca Count compilations and executions in prom 2020-12-07 22:57:03 -06:00
Alexandros Naskos 80763a2574 Fixed zig trunk LLVM IR output (#2327)
* Fixed zig trunk LLVM IR output

* Filter all emit compiler options
2020-11-13 08:24:13 -06:00
Julian 63971bffc6 OSACA tool & analysis support (#2280)
* added rudimentary OSACA tool & analysis support
* added osaca to tools. using -trunk
* fixed copyright string and added myself to CONTRIBUTORS.md
* use OSACA v0.3.10
2020-11-03 08:01:23 -06:00
Austin Morton 4b869071fd Fix golang compiler output when run under firejail
Due to some environment differences between running
under firejail or under no sandbox, the regex used in
`extractLogging` does not match any lines because the
compiler output already has filenames replaced with
`<source>` when run under firejail.  When run outside
firejail the filenames are not filtered.  Additionally, some
compiler output was lost due to having a filename of
`<autogenerated>`.

Fixes #2228
2020-11-03 07:32:52 -05:00
Austin Morton a16013a768 Use execCompilerCached for GCC argument parser 2020-10-16 13:24:40 -04:00
JesusKristsandKrists Niedritis a561a0c412 Add EWARM compiler type and documentation (#2267)
Co-authored-by: Krists Niedritis <kristsn@na.lv>
2020-10-09 07:00:33 -04:00
Danil Yarantsev e1ab9d1132 Enable debugging info for Nim by default (#2266) 2020-10-08 23:58:48 +02:00
Alexandros Naskos 1ecfa68e09 Update Zig to use the new CLI (#2254)
* Fixed zig.js for the new self hosted command line interface

* Broke up long line into two
2020-10-04 19:20:44 +02:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
Patrick Quist a2eed58cd0 Transfer copyright to compiler explorer authors (#2232) 2020-09-26 18:26:02 -04:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton bac07fea6d Eliminate all dynamic require statements (#2230) 2020-09-25 11:21:30 -04:00
Patrick Quist 697c8e9296 support library options to be passed on to the compiler (#2215) 2020-09-25 02:09:47 +02:00
Patrick Quist 3c6d1c7e87 add wasm variants for GO (#2187) 2020-09-06 21:54:09 +02:00
Patrick Quist a57da71c7b Add FPC 3.2.0 (#2185)
* enable fpc 3.2.0

* change fpc default

* way to add nasm to path for fpc

* enable intel asm mode through nasm

* only override env when we have nasmpath

* disable intel checkbox for now, needs some work
2020-09-05 17:51:56 +02:00
Patrick Quist 837fc3cd00 Filter compilers in execution panel (#2181)
* basic supportsExecute filter

* dont mess up existing compiler selections

* dont execute if the compiler doesn't support it, do try to build still

* disable execute for clang arm compilers

* require at least 1 supportsExecute before default adding and selecting anything

* gcc 1.27 dont execute

* get rid of -Wl,-rpath error message
2020-09-04 21:28:14 +02:00
Patrick Quist baa37fadb4 [WIP] Golang GO support binary + execution (#2179)
* glgo support binary + execution

* fix args

* disable binary for 1.4.1
2020-09-04 20:19:10 +02:00
Patrick Quist aa4ff7e7b4 TenDRA support for C (#2138)
* tendra support for C

* rename so we can later add a cpp version

* Update exec.js
2020-08-20 21:46:14 +02:00
Patrick Quist 07f83959d5 Add ptxas (#2102)
* add ptxas

* forgot to commit these

* reuse nvdisasm compatible parsing

* lintfixes
2020-08-07 18:31:38 +02:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Patrick Quist 7befe688c2 bugfix (#2088) 2020-07-17 14:02:54 +02:00
Partouf dc2361291e bugfix fortran errors 2020-07-14 20:41:21 +02:00
Simon Hössjer 4df43dde81 Wsl fixes (#2012)
* Disable WINE on WSL

When Compiler Explorer runs from within WSL, it does not need WINE in
order to call Windows executables.

* Fix process working directories on WSL

This ensures that all working directories, when running the
compiler, are WSL compatible.

* Add test to check correct working directory on WSL
2020-06-20 20:39:01 +02:00
RabsRincon b7fc8b1759 Ensure backend options are always generated 2020-06-15 12:47:31 +02:00
Iain Buclaw 91297042a4 Pass -fsyntax-only when getting GCC options and test that -masm= is really supported (#2001)
* Pass -fsyntax-only when getting GCC options

Without this, the gcc driver will still attempt to invoke the assembler,
even though it is redundant to do so.

* Test that -masm= is both available and supported.

Targets such as i686-apple-darwin or x86_64-apple-darwin may have
-masm=intel present in --target-help, but any use of it will throw:

    error: ‘-masm=intel’ not supported in this configuration
2020-06-08 12:47:44 +02:00
Matt Godbolt 263ff0ed72 Support binary in rust.
Closes #509
2020-05-28 23:11:03 -05:00
Rubén Rincón Blanco afd30bcd66 Merge branch 'master' into go-archs 2020-05-25 13:27:15 +02:00
Patrick Quist 3338076a89 minimum effort support (#1979) 2020-05-20 13:07:11 +02:00
Ethan Slattery 7fcca14890 Ewavr (#1707)
* basic IAR EWAVR compiler support

* basic line number parsing for colored lines

* Better Line Number Parsing (line numbers are right aligned)

* remove unused imports in compiler object

* removed unused lines from asm-parser-ewavr.js since Travis complained about them

* Assorted fixes from code review

* update processAsm() method to work with new style after rebase

* rework EWAVR asm parser. IAR seems to be closer to msvc.

* filter section initialize labels as assembler directives

* Add documentation for EWAVR
2020-05-20 12:55:12 +02:00
Patrick Quist 5bc4e3b133 enables binary+execution for ADA (#1971)
* enables binary+execution for ADA

* generic bandaid for missing executables

* -eS commands are not errors

* support error annotations

* restore original default but add exec example

* re-enable rpath

* add tools
2020-05-20 12:54:34 +02:00
Kale Blankenship 9fe8dcdc9a Go: Add additional architectures
Use 'go build' instead of 'go tool compile' to more easily support
additional architectures.
2020-05-19 14:43:12 -07:00