Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
IIRC, IVs must be big enough to hold a pointer

I've compiled perl with 32 bit IVs on 64-bit Windows 7, Debian Wheezy(ppc64), and freebsd-12.0.
But yes, ptrsize then needs to be 4 bytes, and I assume there must also be some mechanism ensuring that addresses of all allocated memory fit into 4 bytes.

I suspect that, with the right toolchain, I could also achieve such a build on Ubuntu, but I'm not going to chase that up right now.
I was hoping that there might have been some simple trick I could use - hence my initial question.

On the freebsd system, the 32-bit build was achieved by simply passing -Dcc="cc -m32" to Configure.
When I build perl on the Debian system, I (strangely) get 32-bit builds by default, though the system perl is 64-bit. So I pass -Dcc="gcc -m64" to Configure in order to get the 64-bit builds there.
On Windows, it's just a case of using a 32-bit toolchain and ensuring that the WIN64=undef arg is provided to make.


In reply to Re^2: How to build perl-5.32.0 (or later) with ivsize of 4 on Ubuntu-20.04 ? by syphilis
in thread How to build perl-5.32.0 (or later) with ivsize of 4 on Ubuntu-20.04 ? by syphilis

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2021-05-15 20:06 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (150 votes). Check out past polls.