Commit Graph
1453 Commits
Author SHA1 Message Date
Patrick Quist ba6da76ffc add wrap to executor (#2679) 2021-05-21 20:40:44 +02:00
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 a519919a34 Bump max ir lines default for all languages to 5000.
Closes #2600
2021-04-27 17:56:48 -05:00
Arseniy Zaostrovnykh 9b94ce7bab Fix #1346: truncating nested top-level declarations (#2626) 2021-04-27 11:32:47 -05:00
Matt Godbolt 1d7455e1d5 Re-enable java. Closes #1438 2021-04-26 21:18:15 -05:00
Matt Godbolt b56cdb75ba Filter out some directives that seem to upset llvm-mca. Closes #1270 2021-04-26 19:10:01 -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
Arseniy Zaostrovnykh 4f88b3f4ec Highlight ASM and LLVM IR lines corresponding to the given token and vice-versa (#2594)
* Highlight the lines in LLVM-IR corresponding to specific tokens

In addition to the highlighting of all the IR lines corresponding to the given
source line (using blue background), also make the lines corresponding to the
given token on that source line.

* Parse the optional source column number in the text asm

* Bolden the asm lines corresponding to the given token and vice-versa

* Ignore column number if it is 0; add a test with no column specified
2021-04-13 10:22:44 +02:00
Matt Godbolt 259b72e16a Add some tests to s3 storage 2021-04-12 17:46:53 -05:00
Austin Morton a194b5a591 Always store shortlinks with a 6 character prefix in dynamodb 2021-04-09 20:06:06 -04:00
Austin Morton 80fa894cd0 Store shortlinks with both 6 and 9 character prefixs in dynamodb 2021-04-09 17:47:14 -04:00
Matt Godbolt 1f135f27af Fire up a firejailed WINE complex even in nsjail mode. 2021-04-06 19:04:44 -05:00
Arseniy Zaostrovnykh c0633d087c Highlight individual tokens in the source file and the corresponding nodes in the LLVM AST pane (#2572)
* Enable the editor to highlight spans in the highlighted line
* Parse and send the column numbers for LLVM AST nodes
* Highlight the part of the line corresponding to a node

For nodes that fit on a single line
* Highlight the nodes directly corresponding to symbol hovered over

Also highlight entire tokens in the source, not just their first character

* Fix the squiggly underline for string literals
2021-04-06 14:59:46 -05:00
d461b8c43c Add support for nsjail compiler executions (#2569)
* Add support for nsjail compiler executions
* Enable nsjail for beta

Co-authored-by: partouf <partouf@gmail.com>
Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2021-04-06 14:52:16 -05:00
Matt Godbolt aceaae2227 Remove additionalEnv. Treat execOptions.env as always 'in addition to… (#2571)
* Remove additionalEnv. Treat execOptions.env as always 'in addition to base env'. Specifically only pass those env vars through sandboxing
2021-04-03 18:09:58 -05:00
Patrick Quist 355983a106 bugfix make call 2021-04-03 19:46:37 +02:00
Matt Godbolt 71e23aee6e Treat LLVM %blah = expressions as "opcodes"
Fixes #957
2021-04-01 15:37:16 -05: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 93055c2b3c support some AVR branch opcodes 2021-03-31 00:12:09 +02:00
partouf 892b67d15d fix call to isJmpInstruction, 'this' not available from object for some reason 2021-03-30 21:24:04 +00:00
notyourav 2b231834d0 support for arm instructions in graph viewer (#2530) 2021-03-30 22:47:00 +02:00
Austin Morton fbcad4bbdb Propagate cache hits to higher levels in MultiCache (#2524) 2021-03-30 01:40:52 -04:00
Patrick Quist c0a45e754c Add CMake API (#2509)
And multifile support. No UI support.
2021-03-22 22:59:03 +01:00
partouf f227c75f5b bugfix arch detection 2021-03-22 20:24:51 +00:00
Arseniy ZaostrovnykhandArseniy Zaostrovnykh 23b152b298 Colorize the LLVM AST to match the colors of the source (#2511)
Colour the AST view with the same colors as the source code

* Add a couple of trivial test cases for processAstOutput
* Fix the processAstOutput test, ad a test for a file with #include
* Send individual lines for the AST output
* Parse the source lines for AST
* Register as a contributor
* Factor out the LlvmAstParser into a separate file

Co-authored-by: Arseniy Zaostrovnykh <arseniy.zaostrovnykh@sonarsource.com>
2021-03-22 13:21:08 -05:00
Matt Godbolt 6fcf5d758f Increase the number of characters in s3 URLs
We used to use 6. This gives 32^6 possible URLs.
As we increase the number of URLs the godbolt.org site
stores, the chance of an attacker being able to guess
existing URLs has increased. To stay one step ahead,
we bump to 9 characetrs here: 32^9 possible is 35 trillion
possibilities.
2021-03-21 15:06:53 -05:00
Rubén Rincón Blancoandpartouf 7f4c4a9ebf Report back an estimate of filtered lines (#2506)
* Report back an estimate of filtered lines

The commit is tested, but I had to remove an eslint check and
 not run the filter tests because I forgot how to bless them.

* Implement proposed wording change

* Add filtered report in compile info label

* Simplify and add reporting to binary mode filter

* Fix bad git stash shenanigans

* ignore filteredCount when testing

* filteredCount is not guaranteed to be returned

* extra check

Co-authored-by: partouf <partouf@gmail.com>
2021-03-20 20:17:38 +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
RabsRincon 2d91a5e8b2 Shut Winston up 2021-03-18 15:51:35 +01:00
Matt Godboltandpartouf 273017c431 Tweaks to new ASM stuff
* Update right-click menu item to be more general than x86
* mounts /asm/:arch/:opcode and handles unknown arch
* adds dummy aarch64 placeholder
* tags some stuff as aarch64
* tags some stuff as amd64
* uses a redirect from /asm/XXX -> /asm/amd64/XXX
* instructionset detection when property is not set

Co-authored-by: partouf <partouf@gmail.com>
2021-03-14 12:39:55 -05:00
Patrick Quist fc46d0bfae add compilers ldpath to cached requests (#2493) 2021-03-12 15:32:41 +01:00
Jeremy Overesch 11e470a8f7 Feature/jo/arm dockenizer (#2463)
* Update docenizer to python3
* Remove unused code in docenizer
* Create new asm-docs-arm and asm-docs-api-arm files for parsing and retrieving arm related opcodes.  Add conditional instruction switch.
* Rename docs files to specify instruction set
* Add arm32 at /api/asm/arm32/:opcode
* Add @jovere to contributor list
* Add `instructionSet` compiler option
* Update client to access correct instruction based on the `instructionSet` option
* Add `arm32` `instructionSet` option for ARM C++ compilers
* Add `arm32` instructionSet to obvious places in C/C++
2021-03-12 07:40:49 -06:00
Robert Cohn f5babe50f9 enable optimization output for icx/icpx (#2488) 2021-03-11 22:01:51 +01:00
Patrick Quist 77c0a8f3b6 fix undefined stats logging (#2487) 2021-03-11 21:23:11 +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 6ef5a9c628 fix #2231 (#2478) 2021-03-11 17:30:25 +01:00
Patrick Quist 82daa3d9fe Update base.js 2021-03-09 21:28:54 +01:00
Patrick Quist 1a324cb3a7 Update base.js 2021-03-06 20:09:33 +01:00
Patrick Quist 07114b7a8c Update base.js 2021-03-06 19:58:31 +01:00
Patrick Quist 09244df5aa fix compiler firejail execution with ldPath (#2466) 2021-03-06 18:43:50 +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
Rubén Rincón BlancoandPatrick Quist 1642130a55 Add support for more cases of verbose demangling (#2446)
* Add support for more cases of verbose demangling

I skipped the tests on this commit so that I could push it,
 and add the tests at a later date.

I do this because I'm not sure this does not break unreleated
 stuff so I wanted to make the changes visible before fixing the tests

* Adress review comments

* Update cpp.js

* new test results

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-02-25 21:38:51 +01:00