* 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>
* 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
* 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
* 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
* 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.
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>
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.
* 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>
* 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>
* 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++
* 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
* 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>