Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for intro (0.14 sec)

  1. doc/go_mem.html

    </p>
    
    <p>
    Not introducing data races into race-free programs means not moving
    writes out of conditional statements in which they appear.
    For example, a compiler must not invert the conditional in this program:
    </p>
    
    <pre>
    *p = 1
    if cond {
    	*p = 2
    }
    </pre>
    
    <p>
    That is, the compiler must not rewrite the program into this one:
    </p>
    
    <pre>
    *p = 2
    if !cond {
    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

    <code>g</code> pointer into.
    </p>
    
    <p>
    For example, the sequence to load <code>g</code> and <code>m</code>
    using <code>CX</code> looks like this:
    </p>
    
    <pre>
    #include "go_tls.h"
    #include "go_asm.h"
    ...
    get_tls(CX)
    MOVL	g(CX), AX     // Move g into AX.
    MOVL	g_m(AX), BX   // Move g.m into BX.
    </pre>
    
    <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