System programming in D (Was: The God Language)

Sean Kelly sean at invisibleduck.org
Thu Jan 5 16:03:46 PST 2012


On Jan 5, 2012, at 3:56 PM, Walter Bright wrote:

> On 1/5/2012 2:57 PM, Sean Kelly wrote:
>> 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.
> 
> dmd does keep track of register usage within asm blocks.

Oh right, I guess it would have to, since variables can be used by name within asm blocks.  I guess it just doesn't do code movement across asm blocks then?


More information about the Digitalmars-d mailing list