upgrade on AIX to E-server or P-server
Jean-Pierre A. Radley
appl at jpr.com
Fri Nov 18 13:53:41 PST 2005
Dennis Malen propounded (on Fri, Nov 18, 2005 at 04:40:20PM -0500):
| From: "Kenneth Brody" <kenbrody at bestweb.net>
| >Quoting Dennis Malen (Fri, 18 Nov 2005 15:16:46 -0500):
| >>How do I determine if the new server is little-endian?
| >[...]
| >>> If the new system is little-endian (as opposed to the RS/6000's big-
| >>> endian architecture), then swapcpu can be used to convert the files.
| >
| >One way is to determine which CPU the system uses, and the find out
| >what endedness that chip uses.
| >
| >Another would be to test it directly:
| >
| >#include <stdio.h>
| >main()
| > {
| > long l = 0x11223344;
| > char *pt = (char *)&l;
| > printf("%02x %02x %02x %02x\n",pt[0],pt[1],pt[2],pt[3]);
| > }
| >
| >If you get "11 22 33 44", it's big-endian. If you get "44 33 22 11",
| >it's little-endian. (If you get "33 44 11 22", it's a PDP-11.)
|
| I'll e-mail this to my supplier and have them do it.
1) Why don't you test it yourself?
2) And if you don't, why does the filePro list need to know that?
--
JP
More information about the Filepro-list
mailing list