From owner-freebsd-sparc64@FreeBSD.ORG Sun Sep 15 00:04:38 2013 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3B42EDFD for ; Sun, 15 Sep 2013 00:04:38 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0E37B2346 for ; Sun, 15 Sep 2013 00:04:38 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id lf1so3936145pab.38 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=VuE6C15hcjCJgm/WIcFNdGQyeUBJmLzRHkTXYd6PsKD3IYLOpp4QbIPUedFEjYvRt9 LSMSZVET0ULAQiBvffzNdfwYSg2mkYIuqGOZxXtmjW3XLWPbPuYm6E1qbNQXqrF77bch eDsvo7fZdqB7T5gz0q4M5Ei7V6ftlBbjl1lCSoXsjDLJMfdt00pxJVR2rLu257L9IQ44 DH11dQJnyYG7OjWvpbWeH0InCSgYxqbYUcMCbItJ1gHPrdtaH4RVQLac+Db19/ECehsZ ezLPiCtdsJzIKVyEdZ74oC6DcMnV0+WEEZBjnh1cMjpaKMiTlzJqmWWVLPf72DiDUpLp 1LxQ== X-Gm-Message-State: ALoCoQkANdHkat4WB5pAPOw/U6F+7VXzlj6XXgqEGe3UAzSXxDpjwrm2vribrjPKjK0AKaZV5Riw 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 , "freebsd-arm@freebsd.org" , Ian Lepore , FreeBSD PowerPC ML X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the Sparc 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