Jump to page: 1 2
Thread overview
January 24
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???
January 24
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.
January 24
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" ??
January 25
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.

January 24
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.
January 25
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?

January 24
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
January 24
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.
January 25
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.

January 26
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).

« First   ‹ Prev
1 2