This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Opinion on shell script portability, please
- To: zackw at stanford dot edu ("Zack Weinberg")
- Subject: Re: Opinion on shell script portability, please
- From: cgd at sibyte dot com (Chris G. Demetriou)
- Date: 15 Mar 2001 19:09:48 -0800
- Cc: gcc at gcc dot gnu dot org
- References: <20010315180615.I251@stanford.edu> <mailpost.984711338.1893@postal.sibyte.com>
zackw@stanford.edu ("Zack Weinberg") writes:
> I'd like an opinion on how portable the appended shell script is.
Wow, that's kinda cool.
Assuming that what you're hoping to get out for IEEE systems is the
text "@@IEEEFP", one place where it'll fall down is on ARM systems
that use the 'traditional' ARM FP double layout. (iirc, its bytes are
in little-endian order within words of doubles, but the words
themselves are in big-endian order.)
All existing releases of NetBSD for the ARM use this format (though i
guess they're switching to the 'normal' IEEE order at some point in
the future).
% uname -srm
NetBSD 1.4 arm32
% sh evil.sh
format:EI@@PFEE:tamrof
format:...C....:tamrof
format:..#<1Z@.:tamrof
format:R..B..V.:tamrof
format:.Z(.....:tamrof
cgd