Hi monks, I am seeing much larger sizes for XS .so files when building under x86_64 versus i686.

E.g. smaps reports a size of 2085 kB for lib/perl5/x86_64-linux-thread-multi/auto/Time/HiRes/HiRes.so
versus a size of 24 kB for lib/perl5/i686-linux/auto/Time/HiRes/HiRes.so

In fact, all of the x86_64 .so files are > 2000 kB.

Is there some common problem I am tripping up on?

OS is Centos 5.5 (5.4 for i686), perl version is 5.12.2. My Configure invocation for x86_64 is:

./Configure \ -des \ "-Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -f +stack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic" \ -Dcc=gcc \ -Dprefix=$install_dir \ -Darchname=x86_64-linux-thread-multi \ -Duseshrplib \ -Dusethreads \ -Duseithreads \ -Duselargefiles \ -Dd_semctl_semun \ -Di_db \ -Ui_ndbm \ -Di_gdbm \ -Di_shadow \ -Di_syslog \ -Duseperlio \ -Ubincompat5005 \ -Uversiononly \ -Dd_gethostent_r_proto \ -Ud_endhostent_r_proto \ -Ud_sethostent_r_proto \ -Ud_endprotoent_r_proto \ -Ud_setprotoent_r_proto \ -Ud_endservent_r_proto \ -Ud_setservent_r_proto

In reply to large .so sizes under x86_64 by perl5ever

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.