I don't know the exact underpinnings of Compiler Explorer running Java code. So I wonder why the `-ea` execution argument does not enable assertions. I had assumed the arguments are passed in entirety to the VM.
Any thoughts?
#java #programming #compilerexplorer
In another episode of ungrateful feature expectation from awesome and free tools:
I wish @CompilerExplorer let us create a link to just one of the source editors when we have multiple editors open. Or at least let us open a source editor in a new tab which we can then create a link to.
Still, love Compiler Explorer. I can't imagine doing my work without it.
#cpp #cplusplus #programming #compilerexplorer
Python + CompilerExplorer newbie question π π
How do I add a Python module such as multimethod and multipledispatch to my environment?
#question #python #compilerexplorer #module
Forgive me if I should know this but I notice Compiler Explorer pgm output shows only the last byte of the value C++ pgm returns though the assembly shows a different 4-byte value being returned.
https://godbolt.org/z/Yx1nf9oar
Wandbox does the same: https://wandbox.org/permlink/llqGvLRGw2sSHnhT
But running the exe on Windows after compiling with GCC on MinGW returns the complete value.
Is this an OS thing: Windows v Linux? Sorry me no Linux.
#cpp #cplusplus #windows #linux #compilerexplorer #wandbox @compiler_explorer
#cpp #cplusplus #windows #linux #compilerexplorer #wandbox
What's the best and most convenient way to look at how #SwiftLang translates to #ARM64, given that #Godbolt #CompilerExplorer doesn't currently support Swift -> ARM64?
https://github.com/compiler-explorer/compiler-explorer/discussions/4400
#swiftlang #arm64 #godbolt #compilerexplorer
@hsukesan
AFAIK #CompilerExplorer (π) doesn't support debugging, and I'd imagine executing it will be difficult as well.
Sometimes you can get away with returning the value or writing it to a static const(expr) and pull it out of the text of the disassembly.
BTW Unless you are using a crossposter, you may be trying to alert @mattgodbolt to this toot.
I played with the code in a local godbolt instance (or is it compiler-explorer π ). The prios view with the fold at the end compiles down to amazing 75 lines of assembly output. The other version with the set intersection is almost at 400 lines
#cpp #cplusplus #compilerexplorer
@adev @mattgodbolt Yes! Who wouldn't want to toot their sources at #CompilerExplorer ?