[lkml]   [2002]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it
    On Thu, 2002-08-08 at 23:40, Luca Barbieri wrote:
    > > The compiler can cache the value in a register
    > It shouldn't since it is volatile and the machine has instructions with
    > memory operands.

    I'm curious what part of C99 guarantees that it must generate

    add 1 to memory


    load memory
    add 1
    store memory

    It certainly guarantees not to cache it for use next statement, but does
    it actually persuade the compiler to use direct operations on memory ?

    I'm not a C99 language lawyer but genuinely curious

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:27    [W:0.045 / U:24.180 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site