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?
