upgrade on AIX to E-server or P-server
Kenneth Brody
kenbrody at bestweb.net
Fri Nov 18 12:30:06 PST 2005
Quoting Dennis Malen (Fri, 18 Nov 2005 15:16:46 -0500):
> Ken,
>
> 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.)
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list