ImportC and nothrow/@nogc?
Walter Bright
newshound2 at digitalmars.com
Mon Aug 26 05:59:22 UTC 2024
On 8/25/2024 3:43 AM, Nicholas Wilson wrote:
> was that with DMD without optimisations, or LDC with optimisations?
> If this is the former, that's probably that's to be expected.
Kinda unfair to run dmd without optimizations and compare with ldc with? Here's
dmd with -O -inline:
```
_D5test211stupid_hackFiiZi:
0000: 48 83 EC 18 sub RSP,018h
0004: 89 7C 24 08 mov 8[RSP],EDI
0008: 89 74 24 10 mov 010h[RSP],ESI
000c: C7 04 24 00 00 00 00 mov [RSP],0
0013: 03 74 24 08 add ESI,8[RSP]
0017: 89 34 24 mov [RSP],ESI
001a: 89 F0 mov EAX,ESI
001c: 48 83 C4 18 add RSP,018h
0020: C3 ret
```
More information about the Digitalmars-d
mailing list