From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 15 00:04:38 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 27218DFA for ; Sun, 15 Sep 2013 00:04:38 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pb0-x229.google.com (mail-pb0-x229.google.com [IPv6:2607:f8b0:400e:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EE3912344 for ; Sun, 15 Sep 2013 00:04:37 +0000 (UTC) Received: by mail-pb0-f41.google.com with SMTP id rp2so2680662pbb.28 for ; Sat, 14 Sep 2013 17:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=8JacrX3h/FaLvL3ZEh8hc1W/6C0LamNWGB64bozeaK8=; b=ioKs8F+badbfacny8ZGXcN8nbopLlmLQ51Z/uird42yI2ltEfc6zB6SuRLXhQvpFkx l9p0ZXGIoEDYkoeQVmD/Fvwr2+dPqfdLHkcISrGN2YuOsvIdpAj/aIBhHgnNHruQ58PU 8mSLZ0Y42m/4o9nsK/hgO4qhacznaSoBW9gBE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=8JacrX3h/FaLvL3ZEh8hc1W/6C0LamNWGB64bozeaK8=; b=LmF/klZ9NpGcHBUi41xmDeEO/PVWshLOT7nGbC87ErtJ9wo+kZKcmJAjeCZeADWavW oAUl0SHPWXrNPb1R6kAF7fNudBms5zd0JOFjf9JoVurt2Hmh5iyRsYebGE0GjHKqqFuc RUG2rFeCLLNYDUkk9MExAGHBV3I5hiGzIgXWDAfVec+I4szhz6Cbly0UbsCJb4k1Z03a CcN+WkTMfPti2lu+5IpwWwx/G3LcB6I0kH+G41BYjDxUQno1Tx8JewJyocPFw1uQ7lth MmX1YUIR7wOTVg+zldfdZ74rxb5H1ciFrWAfC+Xys2Jg9pMjwl37ZC612tdZKH68N/kL AnCg== X-Gm-Message-State: ALoCoQm6MhcRRChFHDtC+58V5HETGXH649M8xe0tg7hIKEgDJE31CyjcAiQj0OnxMysqfmJ8TvEU X-Received: by 10.66.149.231 with SMTP id ud7mr23390826pab.8.1379203477673; Sat, 14 Sep 2013 17:04:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.6.3 with HTTP; Sat, 14 Sep 2013 17:04:07 -0700 (PDT) In-Reply-To: References: <522CC7E0.9060508@freebsd.org> <5231D8A6.9080501@freebsd.org> <20130914133155.GA32845@alchemy.franken.de> <52346D71.4080407@freebsd.org> <1379173405.1197.7.camel@revolution.hippie.lan> <20130914172735.GX68682@funkthat.com> <1379181341.1197.26.camel@revolution.hippie.lan> From: Eitan Adler Date: Sat, 14 Sep 2013 20:04:07 -0400 Message-ID: Subject: Re: Patch for Cross-Reference Phandles To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: freebsd-sparc64 , John-Mark Gurney , "freebsd-arm@freebsd.org" , Ian Lepore , FreeBSD PowerPC ML X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2013 00:04:38 -0000 [ *please* bottom post ] On Sat, Sep 14, 2013 at 7:56 PM, Adrian Chadd wrote: > ... holy crap. :-) > > erm, try writing some code that does something with it: > > int foo[2] = { 0, 0 }; > > main() > { > int i; > for (i = 0; i < 2; i++) { > foo[i] = i; > } > } > > .. and then make foo[2] be foo[512] and explicitly set it up to be zero'ed. > see what happens. With an explicit zeroing: text data bss dec hex filename 1572 484 16 2072 818 a.out Without: text data bss dec hex filename 1572 484 16 2072 818 a.out