Patch for Cross-Reference Phandles

Eitan Adler lists at eitanadler.com
Sun Sep 15 00:04:38 UTC 2013


[ *please* bottom post ]

On Sat, Sep 14, 2013 at 7:56 PM, Adrian Chadd <adrian at freebsd.org> 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


More information about the freebsd-ppc mailing list