Migrating perl code from 32 to 64 bit OS


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Migrating perl code from 32 to 64 bit OS
# 1  
Old 06-02-2005
Migrating perl code from 32 to 64 bit OS

Hello all,
I am migrating perl code from 32-bit Solaris 2.5 to 64-bit Solaris 9. On which part of code should I concentrate? And please suggest if there is any checklist for the same.

Thanks in advance,
Devesh.
# 2  
Old 06-02-2005
Quote:
Originally Posted by devesh
Hello all,
I am migrating perl code from 32-bit Solaris 2.5 to 64-bit Solaris 9. On which part of code should I concentrate? And please suggest if there is any checklist for the same.

Thanks in advance,
Devesh.
I depends on what exactly you are doing with perl, it is quite possible, depending on that, that there would be little or no change needed. Assuming the versions of perl are not wildly different of course.
# 3  
Old 06-02-2005
Probably unless you do some binary stuff, which is sensitive to how data are physically packed, Perl is largely platform independent. But the deeper you go, the more likely you will hit non-portable aspects (I guess XS apps or modules, which involves an intimate C-Perl binding, needs to be at least recompiled).

If you use pack() and unpack() functions, chances are you may run into portability problems as well.
# 4  
Old 06-06-2005
switching from 32 to 64 bit perl

Under AIX, the README file states the following:

README for AIX Perl 5.8.0 distribution
======================================

This readme is for explaining the logic behind how this version of perl
was packaged.

Perl 5.8.0 first released with AIX 5.2.0 in the Fall 2002.
The 64-bit and 32-bit versions are packaged together with
the 32-bit version being the default version.

The 64-bit version was built using both maximal 64-bit support along with
64-bit integer support.

Both versions reside under /usr/opt/perl5 directory.

Both versions are perl thread capable, built using the newer ithreads
(interpreter threads) and also have builtin support for PerlIO.

Also of interest is the libperl.a library located in the following places
under /usr/opt/perl5:

./lib/5.8.0/aix-thread-multi/CORE/libperl.a
./lib64/5.8.0/aix-thread-multi-64all/CORE/libperl.a

Switching to use the 64-bit version only requires redirecting
the perl symbolic links in /usr/bin, to point to the
64_bit versions of the same command in /usr/opt/perl5/bin.

For your convenience I've included scripts you may cut and
paste (at your own risk). That will re-link each file for you.

NOTE: You must run this script as root for it to work.


Check the README file for Solaris dist. you might find some hints there or
Check the folder where the lib's are stored there may be a lib64 folder, which may be used to convert your 32bit to 64 bit versions.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

64 bit code debugging using gdb and ddd

Hello I have built our application on AIX 7.1 as a 64 bit application. My queries are as follows: Can a 32bit gdb (v7.6) and ddd (data display debugger - v3.3.12), debug a 64bit executable ? If I have a small 64bit a.exe executable that seems to work. If I have a more complicated executable... (4 Replies)
Discussion started by: biju64
4 Replies

2. Programming

C code 1ULL and bit calculation

I found this block of C code to create combinations of A, T, C & G characters (DNA bases). Can anybody explain this code for me, especially with 1ULL<< and ? 16 for (x = 0; x < 1ULL << (2 * k); ++x) 17 { 18 for (i = 0, y = x; i < k; ++i, y >>= 2) 19 putchar ("ACGT"); 20 }... (3 Replies)
Discussion started by: yifangt
3 Replies

3. UNIX for Dummies Questions & Answers

Trying to understand a complex bit of code

Hi, To re-introduce myself, I'm a router guy trying to learn some scripting from the examples in my work place... In a ksh script, one of the script guys wrote the following and I am trying to understand it. I'm hoping someone can explain it to me. The script flow enters a case structure.... (5 Replies)
Discussion started by: Marc G
5 Replies

4. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

5. Shell Programming and Scripting

suitable perl version for windows 2008 64 bit

Hi , While executing perl scripts , sometimes cpu consumption is going to 100% and perl script is asking to abort. In perl script , iam having some powershell commnands. out of 10 times , 9 times script runs fine and 1 time its throwing the above error. Iam using windows 2008 64 bit... (2 Replies)
Discussion started by: penchal_boddu
2 Replies

6. Shell Programming and Scripting

Learning - Why does this bit of code fail

In bash: for i in 1 2 3 4 5 do tmp_${i}=$i echo $i done It gives error on executing tmp_1=1, and so on... Why? If I executed this in prompt, not from script, it shouldn't make a subshell should it? please use "code" tags! thanks... (2 Replies)
Discussion started by: StuartH
2 Replies

7. Shell Programming and Scripting

Where to find 64-bit based perl module like XML::Parser::Expat?

Q: Where to get a 64 bit Expat.so? I run a perl script and got this error: Can't load '/usr/perl5/vendor_perl/5.8.4/i86pc-solaris-64int/auto/XML/Parser/Expat/Expat.so' for module XML:parser::Expat: ld.so.1:myPerl: fatal:... (0 Replies)
Discussion started by: lilili07
0 Replies

8. UNIX for Advanced & Expert Users

migrating unix mp-ras 32 bit to linux suse 64 bit

Hi. I need to migrate the whole unix environment from a Unix mp-ras 32 bit to a Linux Suse 64 bit. 1) can i use cpio to copy the data? 2) can i just copy the users from unix to linux or do i have to create them by hand 3) are there any other concerns i should worry about? thanx (1 Reply)
Discussion started by: mrodrig
1 Replies

9. Solaris

Porting C++ 32-bit code on 64-bit Solaris

Hi, I am trying to convert 32-bit code to 64-bit. I have defined function int main() { int* l; size_t len1; fun(len1); return 0; } void fun(int* ptr) { cout<<"\nsizeof(ptr)"<<sizeof(ptr); } However while compiling getting error as : Error: Formal argument ptr... (2 Replies)
Discussion started by: amit_27
2 Replies

10. Programming

32-bit code with gcc

I want to create a 32 bit shared library. I am using following commands 1. gcc -c test1.c 2. ld -b test1.o -o test1.sl But this creates 64 bit shared library. Unix version of the server on which I am working is HP-UX 11.11 (1 Reply)
Discussion started by: amol.chavan
1 Replies
Login or Register to Ask a Question