Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 1380

Show
Ignore:
Timestamp:
12/14/09 08:12:51 (15 years ago)
Author:
walter
Message:

bugzilla 3593 IntegerExpression? rule unspecified

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docsrc/iasm.dd

    r1372 r1380  
    1919    passing conventions, etc. 
    2020    ) 
    2121 
    2222    $(P This document describes the x86 implementation of the inline 
    2323    assembler. 
    2424    ) 
    2525 
    2626$(GRAMMAR 
    2727$(GNAME AsmInstruction): 
    2828    $(I Identifier) $(B :) $(I AsmInstruction) 
    29     $(B align) $(I IntegerExpression) 
     29    $(B align) $(GLINK IntegerExpression) 
    3030    $(B even) 
    3131    $(B naked) 
    3232    $(B db) $(I Operands) 
    3333    $(B ds) $(I Operands) 
    3434    $(B di) $(I Operands) 
    3535    $(B dl) $(I Operands) 
    3636    $(B df) $(I Operands) 
    3737    $(B dd) $(I Operands) 
    3838    $(B de) $(I Operands) 
    3939    $(I Opcode) 
     
    5757{ 
    5858    call L1     ; 
    5959 L1:            ; 
    6060    pop EBX     ; 
    6161    mov pc[EBP],EBX ;   // pc now points to code at L1 
    6262} 
    6363-------------- 
    6464 
    6565<h2>align $(I IntegerExpression)</h2> 
    6666 
     67$(GRAMMAR 
     68$(GNAME IntegerExpression): 
     69    $(I IntegerLiteral) 
     70    $(I Identifier) 
     71) 
     72 
    6773    $(P Causes the assembler to emit NOP instructions to align the next 
    6874    assembler instruction on an $(I IntegerExpression) boundary. 
    69     $(I IntegerExpression) must evaluate to an integer that is 
     75    $(I IntegerExpression) must evaluate at compile time to an integer that is 
    7076    a power of 2. 
    7177    ) 
    7278 
    7379    $(P Aligning the start of a loop body can sometimes have a dramatic 
    7480    effect on the execution speed. 
    7581    ) 
    7682 
    7783<h2>even</h2> 
    7884 
    7985    $(P Causes the assembler to emit NOP instructions to align the next