On Jan 5, 2012, at 2:08 PM, Manu wrote:

> On 5 January 2012 23:53, Sean Kelly <s...@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.

Reply via email to