Equivalent in D for .p2align 4,,15 ?

Etienne via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 29 10:16:20 PDT 2014


I'm looking for the D inline assembler equivalent of the .p2align 4,,15 
directive to optimize a loop.

Here's more information:
http://stackoverflow.com/questions/21546946/what-p2align-does-in-asm-code

I tried searching through a turbo assembler tutorial (because D's is 
based on it) and found nothing except a few hints here: 
http://www.csn.ul.ie/~darkstar/assembler/manual/a10.txt

There might be a way through segments, directives, but I'm not sure at 
all if D supports it.

Does anyone have any idea if/how I can align my code this way or if the 
compiler handles it?


More information about the Digitalmars-d-learn mailing list