Re: Expat For Embedded System

"Ben Allison" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
> Omer Anjum wrote:
>> Dear Epat Forum members
>>
>> I am working on an embedded system and needs a C or C++ based XML
>> Pareser with size less then 100Kb. Can you tell me that is Expat able
>> to help me in solving my problem.
>> Regards
>>
>
> 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.

If you statically link expat, and have a reasonable smart compiler, it
should check in at less than 100kb (we get it down to about 75kb even with
UTF-16 and namespace enabled).  Creating a dynamic library (e.g. DLL or
so) tends to be larger because the compiler isn't sure what code will and
won't be called.  If you need a dynamic library (maybe because multiple
programs use the library) then you should be able to trim some code from
unused areas by tweaking your compiler and linker settings.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.