What should happen here?
max haughton
maxhaton at gmail.com
Thu Sep 23 18:46:12 UTC 2021
On Thursday, 23 September 2021 at 18:41:55 UTC, Steven
Schveighoffer wrote:
> On 9/23/21 1:45 PM, Johan wrote:
>> On Thursday, 23 September 2021 at 12:47:25 UTC, Steven
>> Schveighoffer wrote:
>>>
>>> I think we will need a real compiler intrinsic at this point.
>>
>> For LDC (and I expect GDC too), the asm trick works.
>
> oooh, really? That's cool. Maybe I'll update the library and
> re-register.
>
> Looking at the disassembly, I do see the difference. This is it
> pushing to the stack, right?
>
> ```asm
> mov qword ptr [rsp], rax
> ```
>
> -Steve
RSP is the stack pointer and [RSP] refers to its value, so yes.
I will have a look at the LLVM GC intrinsics when I get round to
it.
More information about the Digitalmars-d
mailing list