This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Opinion on shell script portability, please


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]