From: David Filmer on
If Perl is compiled on a 32-bit system, and the system is later
upgraded to 64-bit hardware and O/S, would Perl programs then be able
to use the full amount of memory that a 64-bit system would allow?

Or would I need to re-compile Perl in the 64-bit environment to access
the larger memory?

Thanks!
From: Ben Morrow on

Quoth David Filmer <usenet(a)davidfilmer.com>:
> If Perl is compiled on a 32-bit system, and the system is later
> upgraded to 64-bit hardware and O/S, would Perl programs then be able
> to use the full amount of memory that a 64-bit system would allow?

No.

(Though you may, of course, gain some benefit from being able to run
several full-32bit-address-space processes side-by-side without
swapping.)

> Or would I need to re-compile Perl in the 64-bit environment to access
> the larger memory?

Yes.

(Think about it for a minute. The 32bit perl was, by definition,
compiled with 32bit pointers. Thus, it cannot address more than 32 bits'
worth of memory, regardless of what the OS can address or what is
physically present in the machine.)

Ben