Xref: utzoo comp.unix.ultrix:4903 comp.sys.mips:1101 comp.sys.sgi:6245 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ncar!boulder!hartzell From: hartzell@boulder.Colorado.EDU (George Hartzell) Newsgroups: comp.unix.ultrix,comp.sys.mips,comp.sys.sgi Subject: Re: Effect of 'volatile' on structures Message-ID: <28057@boulder.Colorado.EDU> Date: 12 Oct 90 23:39:29 GMT References: <11261@sybase.sybase.com> Sender: news@boulder.Colorado.EDU Reply-To: hartzell@boulder.Colorado.EDU (George Hartzell) Followup-To: comp.unix.ultrix Organization: MCD Biology, University of Colorado, Boulder Lines: 32 In-reply-to: mcfong@mercury.sybase.com (Martin C. Fong) In article <11261@sybase.sybase.com>, mcfong@mercury (Martin C. Fong) writes: >The MIPS machine produces the following results: > > a{i,j} = {0,0} > b{i,j} = {1,1} > c{i,j} = {1,1} > >while the SGI and DEC machine produces these results: > > a{i,j} = {0,0} > b{i,j} = {1,0} > c{i,j} = {1,1} > >Could someone please try this program on RISC ULTRIX 4.0 and SGI IRIX >3.3? Because the MIPS machine produces the "expected" results, I will On a DECstation 3100 running 4.0: cc -O -o foo foo.c foo a{i,j} = {0,0} b{i,j} = {1,0} c{i,j} = {1,1} cc (cc) Mips Computer Systems 2.0 g. George Hartzell (303) 492-4535 MCD Biology, University of Colorado-Boulder, Boulder, CO 80309 hartzell@Boulder.Colorado.EDU ..!ncar!boulder!hartzell