I'm interested in what some of B's output looks like on different archtectures. I wrote a simple script that dumps some information on the FLAGS portion of a few scalars (global/pad/int/str). I also printed some config information on the off chance it's interesting though I don't know that in advance. So please, if you have something that isn't ix86 based then I'm interested to see what this outputs for you. So post your output and you'll earn my gratitude and a ++. Thanks.

require B; sub flags { my ($name, $test_ref) = @_; my $test_obj = B::svref_2object( $test_ref ); my $bits = sprintf "%o", $test_obj -> FLAGS; # my $bits = unpack 'B*', pack 'N', $test_obj -> FLAGS; print "$name: $bits\n"; } my $pad_str = "str"; my $pad_int = 1; $str = "str"; $int = 1; flags( "pad str", \ $pad_str ); flags( "pad int", \ $pad_int ); flags( "gbl str", \ $str ); flags( "gbl int", \ $int ); print "\n"; # Print some values I'm interested in seeing. use Config qw(config_vars); config_vars(qw(archname intsize longsize ptrsize doublesize byteorder d_longlong longlongsize d_longdbl longdblsize ivtype ivsize nvtype nvsize lseeksize alignbytes)); __DATA__ pad str: 401002404 pad int: 100202401 gbl str: 401000004 gbl int: 100200001 archname='MSWin32-x86-multi-thread'; intsize='4'; longsize='4'; ptrsize='4'; doublesize='8'; byteorder='1234'; d_longlong='undef'; longlongsize='8'; d_longdbl='define'; longdblsize='10'; ivtype='long'; ivsize='4'; nvtype='double'; nvsize='8'; lseeksize='4'; alignbytes='8';

In reply to Non ix86 internals by diotalevi

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.