From webmaster at hartwork.org Mon Jun 4 13:10:59 2007 From: webmaster at hartwork.org (Sebastian Pipping) Date: Mon, 04 Jun 2007 13:10:59 +0200 Subject: [Expat-discuss] Add const where possible? Message-ID: <4663F343.4050208@hartwork.org> I remember seeing some places in Expat code where adding a const would have been possible. I mean for local variables, not in the interfaces. Does anybody know bad effects of adding const modifiers? On the pro side I see potentially helping the compiler with optimizations and also making the code more understandable. Any cons? Thanks in advance, Sebastian From webmaster at hartwork.org Wed Jun 6 14:39:23 2007 From: webmaster at hartwork.org (Sebastian Pipping) Date: Wed, 06 Jun 2007 14:39:23 +0200 Subject: [Expat-discuss] Expat 2.0.1 released Message-ID: <4666AAFB.90803@hartwork.org> Release 2.0.1 of the Expat XML parser is a bugfix release resolving both code and build related issues. Updating is recommended, please see change log for details. Download http://sourceforge.net/project/showfiles.php?group_id=10127 Changelog http://sourceforge.net/project/shownotes.php?release_id=513851&group_id=10127 Sebastian From maxb1 at ukf.net Thu Jun 7 00:17:32 2007 From: maxb1 at ukf.net (Max Bowsher) Date: Wed, 06 Jun 2007 23:17:32 +0100 Subject: [Expat-discuss] Expat 2.0.1 released In-Reply-To: <4666AAFB.90803@hartwork.org> References: <4666AAFB.90803@hartwork.org> Message-ID: <4667327C.8020606@ukf.net> Sebastian Pipping wrote: > Release 2.0.1 of the Expat XML parser is a bugfix release > resolving both code and build related issues. > Updating is recommended, please see change log for details. > > > Download > http://sourceforge.net/project/showfiles.php?group_id=10127 The downloaded tarball unpacks to a toplevel directory name of "expat-2007-06-05" instead of the expected "expat-2.0.1". Did something go wrong in the release process? Max. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 186 bytes Desc: OpenPGP digital signature Url : http://mail.libexpat.org/pipermail/expat-discuss/attachments/20070606/051c6e84/attachment.pgp From karl at waclawek.net Thu Jun 7 04:45:13 2007 From: karl at waclawek.net (Karl Waclawek) Date: Wed, 06 Jun 2007 22:45:13 -0400 Subject: [Expat-discuss] Expat 2.0.1 released In-Reply-To: <4667327C.8020606@ukf.net> References: <4666AAFB.90803@hartwork.org> <4667327C.8020606@ukf.net> Message-ID: <46677139.2010401@waclawek.net> Max Bowsher wrote: > Sebastian Pipping wrote: > >> Release 2.0.1 of the Expat XML parser is a bugfix release >> resolving both code and build related issues. >> Updating is recommended, please see change log for details. >> >> >> Download >> http://sourceforge.net/project/showfiles.php?group_id=10127 >> > > The downloaded tarball unpacks to a toplevel directory name of > "expat-2007-06-05" instead of the expected "expat-2.0.1". > > Did something go wrong in the release process? > > Probably. I re-uploaded a corrected archive. Don't know how long it takes to propagate to the mirrors. Please check if you can download the correct file. Karl From cjliarng at yahoo.com.tw Fri Jun 29 11:37:57 2007 From: cjliarng at yahoo.com.tw (cjliarng) Date: Fri, 29 Jun 2007 17:37:57 +0800 (CST) Subject: [Expat-discuss] Downsize Expat For Embedded System Message-ID: <288573.98414.qm@web73408.mail.tp2.yahoo.com> Dear Expat experts, According to the discussion on http://mail.libexpat.org/pipermail/expat-discuss/2007-April/002282.html > I don't think Expat's size is < 100KB on any system, but there are > compile time options > to minimize the size of Expat (disabling certain features, etc. - read > the documentation) > and there are also compiler options to keep the size smaller ( for a > little less performance). > Maybe you can trim it down to about 100KB that way. I need to trim the share object down to 100~150KB. So I tried the following.. My platform is on linux, use gcc for expat 2.0.1. I have tried to Add -DXML_MIN_SIZE for CFLAGS in Makefile. And #undef XML_DTD, #undef XML_NS in expat_config.h. It works and trim around 100K away. However, the output share object libexpat.so is still around 260K. Is there any thing I can do to make the .so down to around 100K? Thanks in advanced for any advise~~ Best Regards, anne. ?????????b???A?O???b???w?? - ???W?]?w Yahoo!?_???w???????I From karl at waclawek.net Fri Jun 29 16:36:01 2007 From: karl at waclawek.net (Karl Waclawek) Date: Fri, 29 Jun 2007 10:36:01 -0400 Subject: [Expat-discuss] Downsize Expat For Embedded System In-Reply-To: <288573.98414.qm@web73408.mail.tp2.yahoo.com> References: <288573.98414.qm@web73408.mail.tp2.yahoo.com> Message-ID: <468518D1.1060905@waclawek.net> cjliarng wrote: > I need to trim the share object down to 100~150KB. > So I tried the following.. > My platform is on linux, use gcc for expat 2.0.1. > I have tried to > Add -DXML_MIN_SIZE for CFLAGS in Makefile. > And #undef XML_DTD, #undef XML_NS in expat_config.h. > It works and trim around 100K away. > However, the output share object libexpat.so is still around 260K. > Is there any thing I can do to make the .so down to around 100K? > Thanks in advanced for any advise~~ > > This is strange indeed. On Windows, the regular size of the Dll is about 148KB, without any tricks. Any ideas anyone? Karl From webmaster at hartwork.org Fri Jun 29 18:39:52 2007 From: webmaster at hartwork.org (Sebastian Pipping) Date: Fri, 29 Jun 2007 18:39:52 +0200 Subject: [Expat-discuss] Downsize Expat For Embedded System In-Reply-To: <468518D1.1060905@waclawek.net> References: <288573.98414.qm@web73408.mail.tp2.yahoo.com> <468518D1.1060905@waclawek.net> Message-ID: <468535D8.20505@hartwork.org> Karl Waclawek wrote: > cjliarng wrote: >> I need to trim the share object down to 100~150KB. >> So I tried the following.. >> My platform is on linux, use gcc for expat 2.0.1. >> I have tried to >> Add -DXML_MIN_SIZE for CFLAGS in Makefile. >> And #undef XML_DTD, #undef XML_NS in expat_config.h. >> It works and trim around 100K away. >> However, the output share object libexpat.so is still around 260K. >> Is there any thing I can do to make the .so down to around 100K? >> Thanks in advanced for any advise~~ >> > This is strange indeed. On Windows, the regular size of the Dll is about > 148KB, without any tricks. > Any ideas anyone? ------------------------------------------------------------ Stripping the .so file reduces the filesize from 245,563 down to 86,944 at my place and still seems to work. I ran this command: $ strip -s ./.libs/libexpat.so.1.5.2 In case it doesn't work after that you could try stripping just the debug symbols with "-d" instead. Sebastian