Operating System - HP-UX
1825604 Members
2782 Online
109682 Solutions
New Discussion

Perl machine architecture vs real machine architecture

 
SOLVED
Go to solution
Ovid Saveluc_1
Trusted Contributor

Perl machine architecture vs real machine architecture

Hi,

I have a version of Perl 5.6.1 for PA-RISC1.1 (according to perl -v) running on an N4000-55 machine (which is PA-RISC2.0).
As far as I know one may encounter problems when running code compiled/ built on one PA-RISC version on another PA-RISC spec machine.

Is there a known exception to this for perl ?

Thanks,
Ovid.
2 REPLIES 2
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Perl machine architecture vs real machine architecture

no. and the exception is only one way

1.1 compiled code will run fine on 2.0 or 2.0w, but not vise versa

the problem with perl is that needs the same architecture when _extending_ with XS modules (XS modules are based on C code and require the same compiler that Perl was built with for smooth binding)

So, if you plan to move ahead, and install XS modules from the new architecture (Tk, DBI, DBD::Oracle, ...), please do yourself a favour and fetch the perl binary built on that architecture and OS version

Recent builds always available oy HP ITRC site pages can be found at

Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Seattle http://www.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Ted Buis
Honored Contributor

Re: Perl machine architecture vs real machine architecture

Perl compiled for PA 2.0 might run faster on a PA-2.0 machine than a PA 1.1 binary.
Mom 6