From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 792 invoked by alias); 14 Sep 2005 19:23:07 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 757 invoked by uid 22791); 14 Sep 2005 19:22:58 -0000 Received: from sadr.equallogic.com (HELO sadr.equallogic.com) (66.155.203.134) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 14 Sep 2005 19:22:58 +0000 Received: from sadr.equallogic.com (localhost.localdomain [127.0.0.1]) by sadr.equallogic.com (8.12.8/8.12.8) with ESMTP id j8EJMuip005872 for ; Wed, 14 Sep 2005 15:22:57 -0400 Received: from M31.equallogic.com (M31.equallogic.com [172.16.1.31]) by sadr.equallogic.com (8.12.8/8.12.8) with SMTP id j8EJMuje005867; Wed, 14 Sep 2005 15:22:56 -0400 Received: from pkoning.equallogic.com ([172.16.1.181]) by M31.equallogic.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 14 Sep 2005 15:22:55 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17192.30862.611030.76521@gargle.gargle.HOWL> Date: Wed, 14 Sep 2005 20:53:00 -0000 From: Paul Koning To: dave.korn@artimi.com Cc: dj@redhat.com, shreyas76@gmail.com, binutils@sources.redhat.com Subject: RE: Address assignment References: <200509141316.j8EDGj2h015594@greed.delorie.com> X-SW-Source: 2005-09/txt/msg00156.txt.bz2 >>>>> "Dave" == Dave Korn writes: >> Why add an unneeded level of indirection? Especially on >> time-critical embedded systems? Dave> These days, I really have *lots* of faith in the compiler to be Dave> able to optimise that away[*]. But I guess you could always Dave> write Dave> #define my_struct (*(struct my_struct_type *)0xa0001028) Dave> and treat it just like an object Dave> my_struct.x = 3; If you don't want accesses optimized away, you need "volatile". paul