www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Godbolt.org hex view

reply Walter Bright <newshound2 digitalmars.com> writes:
When I used to use godbolt.org, it would show the assembler generated by the 
compiler along with the hex bytes. Now it no longer shows the hex bytes. It
just 
shows the disassembly. How do I turn that on? I clicked on every option I could 
find. I googled it. No joy. I tried Groc. No useful information.

P.S. I get the hex output with clang, but not with gcc???
Jan 24
parent reply user1234 <user1234 12.de> writes:
On Friday, 24 January 2025 at 08:56:20 UTC, Walter Bright wrote:
 When I used to use godbolt.org, it would show the assembler 
 generated by the compiler along with the hex bytes. Now it no 
 longer shows the hex bytes. It just shows the disassembly. How 
 do I turn that on? I clicked on every option I could find. I 
 googled it. No joy. I tried Groc. No useful information.

 P.S. I get the hex output with clang, but not with gcc???
"Output" + check "Link to binary" e.g https://godbolt.org/z/41hneYz98 It seems that hex is only displayed when objdump is also used as disaseembler, otherwise without the "Link to binary" option an ".S" file is directly produced.
Jan 24
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/24/2025 2:48 AM, user1234 wrote:
 On Friday, 24 January 2025 at 08:56:20 UTC, Walter Bright wrote:
 When I used to use godbolt.org, it would show the assembler generated by the 
 compiler along with the hex bytes. Now it no longer shows the hex bytes. It 
 just shows the disassembly. How do I turn that on? I clicked on every option I 
 could find. I googled it. No joy. I tried Groc. No useful information.

 P.S. I get the hex output with clang, but not with gcc???
"Output" + check "Link to binary" e.g https://godbolt.org/z/41hneYz98 It seems that hex is only displayed when objdump is also used as disaseembler, otherwise without the "Link to binary" option an ".S" file is directly produced.
Thank you, your link works. But where does it say "Link to binary" ??
Jan 24
next sibling parent reply "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 25/01/2025 3:37 PM, Walter Bright wrote:
 On 1/24/2025 2:48 AM, user1234 wrote:
 On Friday, 24 January 2025 at 08:56:20 UTC, Walter Bright wrote:
 When I used to use godbolt.org, it would show the assembler generated 
 by the compiler along with the hex bytes. Now it no longer shows the 
 hex bytes. It just shows the disassembly. How do I turn that on? I 
 clicked on every option I could find. I googled it. No joy. I tried 
 Groc. No useful information.

 P.S. I get the hex output with clang, but not with gcc???
"Output" + check "Link to binary" e.g https://godbolt.org/z/41hneYz98 It seems that hex is only displayed when objdump is also used as disaseembler, otherwise without the "Link to binary" option an ".S" file is directly produced.
Thank you, your link works. But where does it say "Link to binary" ??
Under the compiler/target drop down button. There is a drop down button called Output.
Jan 24
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/24/2025 6:39 PM, Richard (Rikki) Andrew Cattermole wrote:
 Under the compiler/target drop down button.
There is no Compiler/target button. But there is a dialog box with "ARM64 GCC 10.2.0".
 There is a drop down button called Output.
There's one with a gear on it that has: - Compile to binary object (greyed out) - Execute the code (greyed out) X Intel asm syntax (greyed out) X Demangle identifiers With the first 3 options greyed out. Now, merely changing the target to "armv8-a clang (trunk)": - Compile to binary object (greyed out) X Link to binary - Execute the code X Intel asm syntax X Demangle identifiers and the hex code appears. All I did was change the compiler and target.
Jan 24
parent reply "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 25/01/2025 3:55 PM, Walter Bright wrote:
 On 1/24/2025 6:39 PM, Richard (Rikki) Andrew Cattermole wrote:
 Under the compiler/target drop down button.
There is no Compiler/target button. But there is a dialog box with "ARM64 GCC 10.2.0".
Yeah that's it.
 There is a drop down button called Output.
There's one with a gear on it that has:
The gear is the icon for a button with the label "Output". Here is how it is supposed to look like: https://cattermole.co.nz/godbolt.org.example.png The reason not all targets may be showing up as an option is based upon the host system may not have everything installed that is needed to link for each target. Which can be annoying.
Jan 24
next sibling parent reply Elias Batek (0xEAB) <desisma heidel.beer> writes:
On Saturday, 25 January 2025 at 03:04:00 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
 Here is how it is supposed to look like:

 https://cattermole.co.nz/godbolt.org.example.png
I don’t think so:
 Error 1011
 Access denied

 The owner of this website (cattermole.co.nz) does not allow 
 hotlinking to that resource (/godbolt.org.example.png).
Jan 25
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 26/01/2025 4:19 PM, Elias Batek (0xEAB) wrote:
 On Saturday, 25 January 2025 at 03:04:00 UTC, Richard (Rikki) Andrew 
 Cattermole wrote:
 Here is how it is supposed to look like:

 https://cattermole.co.nz/godbolt.org.example.png
I don’t think so:
 Error 1011
 Access denied

 The owner of this website (cattermole.co.nz) does not allow hotlinking 
 to that resource (/godbolt.org.example.png).
Oh lol, disabled that on cloudflare. Worked when I had typed it in, didn't check for referrals.
Jan 25
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/24/2025 7:04 PM, Richard (Rikki) Andrew Cattermole wrote:
 The reason not all targets may be showing up as an option is based upon the
host 
 system may not have everything installed that is needed to link for each
target. 
 Which can be annoying.
I found that the hex view appears and disappears even with the exact same compiler selected. I filed a bug report, but that went nowhere.
Jan 25
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 26/01/2025 5:28 PM, Walter Bright wrote:
 On 1/24/2025 7:04 PM, Richard (Rikki) Andrew Cattermole wrote:
 The reason not all targets may be showing up as an option is based 
 upon the host system may not have everything installed that is needed 
 to link for each target. Which can be annoying.
I found that the hex view appears and disappears even with the exact same compiler selected. I filed a bug report, but that went nowhere.
Yeah sometimes settings get lost and default isn't what you expect of it, depending on what instances you access. Can be annoying if you have to mess with something just the one time.
Jan 25
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/24/2025 6:37 PM, Walter Bright wrote:
 Thank you, your link works. But where does it say "Link to binary" ??
Ah, I found it. It's under the "gear" icon. I hate icons. But I'm glad to be back in business with godbolt.
Jan 24
next sibling parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 25/01/2025 3:40 PM, Walter Bright wrote:
 On 1/24/2025 6:37 PM, Walter Bright wrote:
 Thank you, your link works. But where does it say "Link to binary" ??
Ah, I found it. It's under the "gear" icon. I hate icons. But I'm glad to be back in business with godbolt.
What do you mean icon? How small is your resolution that it can't display the label?
Jan 24
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 1/24/2025 6:40 PM, Walter Bright wrote:
 On 1/24/2025 6:37 PM, Walter Bright wrote:
 Thank you, your link works. But where does it say "Link to binary" ??
Ah, I found it. It's under the "gear" icon. I hate icons. But I'm glad to be back in business with godbolt.
But with the ARM64 GCC compilers, the "Compile to binary object" is greyed out! Arrgghhh
Jan 24