[Zlib-devel] endian issues?

Mike Marcucio MMarcucio at dataviz.com
Thu Apr 14 08:52:19 EDT 2005


Thanks for the reply. On windows I am using VC++ and everything works
fine, and for the palm we are using CodeWarrior's compiler which is what
doesn't work. I am now trying to build native palm "Armlet" to see if
that works. 

What is weird is that 2 of us are working independently on implementing
zlib 2 different ways (zip and pdf) and both of us run into this
problem. It is also a little strange that smaller files seem to
sometimes work but larger files never inflate properly (getting a bad
data error). Maybe it is a compiler problem..

Thanks for the suggestions; if anyone has any more please let em know

Thanks
Mike


-----Original Message-----
From: Zlib-devel-bounces at zlib.net [mailto:Zlib-devel-bounces at zlib.net]
On Behalf Of Greg Roelofs
Sent: Wednesday, April 13, 2005 8:44 PM
To: zlib-devel at zlib.net
Subject: Re: [Zlib-devel] endian issues?

> Any help in pointing me in the right location would be appreciated.

What compiler are you using under Windows?  One of the more interesting
comments at a software-porting talk I attended several years ago was
that the Microsoft compilers and libraries are very permissive in the
kinds of code they accept, which could (and often did) lead to working
code (on Windows) that contained rather subtle, hidden assumptions that
did not hold on other platforms.  (For example, that certain
heap-allocated
memory was initialized, when in fact it had never explicitly been
zeroed.)

If you _are_ using a Microsoft compiler, you might try recompiling under
Cygwin or with the MinGW32 compiler just for yuks.  (Use -Wall and
optionally -W.)  If not, never mind...  Nothing else comes to mind at
the moment.  (I haven't ever done Palm development.  68k compilers
should be pretty mature by now...but it's always possible someone
introduced a new optimization bug or something.)

Greg

_______________________________________________
Zlib-devel mailing list
Zlib-devel at zlib.net
http://madler.net/mailman/listinfo/zlib-devel_madler.net




More information about the Zlib-devel mailing list