[linux-audio-dev] Re: Shared memory

Juhana Sadeharju kouhia at nic.funet.fi
Fri Jul 25 10:13:01 UTC 2003


>From: ingo.oeser at informatik.tu-chemnitz.de (Ingo Oeser)
>
>For people like you gcc supports -fvolatile.
>
>Your code will be really slow, but you save typing 'volatile' where the
>C-Compiler needs it.

So, there is no "do not optimize away apperent volatile variables"?
Volatile variables in shmclient are easily recognized -- at least
I recognized them. It is the array variable which content is only
read but never written.

No such optimization flag? Can't believe that compilers are that dump.

Juhana



More information about the Linux-audio-dev mailing list