Sean Murthy · @smurthys
170 followers · 2045 posts · Server hachyderm.io

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?

sigcpp.godbolt.org/z/6Wed9cnGY

#java #programming #compilerexplorer

Last updated 1 year ago

Sean Murthy · @smurthys
154 followers · 1888 posts · Server hachyderm.io

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

Last updated 1 year ago

Sean Murthy · @smurthys
151 followers · 1818 posts · Server hachyderm.io

Python + CompilerExplorer newbie question 😊 πŸ™

How do I add a Python module such as multimethod and multipledispatch to my environment?

godbolt.org/z/EdEE5q3TM

#question #python #compilerexplorer #module

Last updated 1 year ago

Sean Murthy · @smurthys
108 followers · 1113 posts · Server hachyderm.io

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.

godbolt.org/z/Yx1nf9oar

Wandbox does the same: wandbox.org/permlink/llqGvLRGw

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.

@compiler_explorer

#cpp #cplusplus #windows #linux #compilerexplorer #wandbox

Last updated 1 year ago

Chris Offner :verified: · @chrisoffner3d
198 followers · 774 posts · Server sigmoid.social

What's the best and most convenient way to look at how translates to , given that doesn't currently support Swift -> ARM64?

github.com/compiler-explorer/c

#swiftlang #arm64 #godbolt #compilerexplorer

Last updated 1 year ago

Am I? · @ami
118 followers · 799 posts · Server floss.social

@hsukesan
AFAIK (πŸ˜‰) 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.

#compilerexplorer

Last updated 2 years ago

Dennis BΓΆrm · @allspark
62 followers · 543 posts · Server mastodon.wormhole.eu

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

Last updated 2 years ago

Steve James · @ste
13 followers · 43 posts · Server noc.social

@adev @mattgodbolt Yes! Who wouldn't want to toot their sources at ?

#compilerexplorer

Last updated 2 years ago