From owner-freebsd-chat Wed Oct 31 10:12: 6 2001 Delivered-To: freebsd-chat@freebsd.org Received: from scaup.prod.itd.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by hub.freebsd.org (Postfix) with ESMTP id 5065737B403; Wed, 31 Oct 2001 10:12:03 -0800 (PST) Received: from dialup-209.247.137.200.dial1.sanjose1.level3.net ([209.247.137.200] helo=mindspring.com) by scaup.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 15yzqC-0002jm-00; Wed, 31 Oct 2001 10:11:56 -0800 Message-ID: <3BE03EFD.8269DA73@mindspring.com> Date: Wed, 31 Oct 2001 10:12:13 -0800 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Nate Williams Cc: John Baldwin , chat@FreeBSD.org Subject: Re: time_t not to change size on x86 References: <3BDED411.DDEA0BD7@mindspring.com> <15326.55441.615206.243327@caddis.yogotech.com> <3BDFB74D.4EBD3145@mindspring.com> <15328.11194.623723.611472@caddis.yogotech.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Nate Williams wrote: > > Actually, there are situations where you _must_ use volatile > > to prevent register optimization of variables. > > Only during OS type work, which most of the programmers never need to > worry about. Signal handlers. IPC via shared memory. Threads. ...lot of places where the optimizer wants to jam things in a register when you use loop control structures... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message