System programming in D (Was: The God Language)
Sean Kelly
sean at invisibleduck.org
Thu Jan 5 14:57:07 PST 2012
On Jan 5, 2012, at 2:08 PM, Manu wrote:
> On 5 January 2012 23:53, Sean Kelly <sean at invisibleduck.org> wrote:
> I recall Walter rejecting the idea because compilers shouldn't optimize across asm blocks. This should probably be revisited at some point.
>
> It's proven then, inline asm blocks break the optimiser... they are officially useless. This is why all C coders use intrinsics these days, and D should too.
For the record, some compilers do optimize across asm blocks. It's simply DMD/DMC that doesn't. Though the lack of "volatile" makes doing this unsafe in D as a general rule.
More information about the Digitalmars-d
mailing list