Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for printf (1.02 sec)

  1. doc/go_mem.html

    </p>
    
    <p>
    In this program:
    </p>
    
    <pre>
    var a, b int
    
    func f() {
    	a = 1
    	b = 2
    }
    
    func g() {
    	print(b)
    	print(a)
    }
    
    func main() {
    	go f()
    	g()
    }
    </pre>
    
    <p>
    it can happen that <code>g</code> prints <code>2</code> and then <code>0</code>.
    </p>
    
    <p>
    This fact invalidates a few common idioms.
    </p>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. doc/asm.html

    The assembler uses them to hold temporary values when assembling some instructions.
    </p>
    
    <p>
    <code>R13</code> points to the <code>g</code> (goroutine) structure.
    This register must be referred to as <code>g</code>; the name <code>R13</code> is not recognized.
    </p>
    
    <p>
    <code>R15</code> points to the stack frame and should typically only be accessed using the
    virtual registers <code>SP</code> and <code>FP</code>.
    </p>
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
Back to top