cross compile errors

2008-10-21 Thread idht4n
I'm trying to cross compile for a ppc platform from x86 Linux. I've used the same procedure as I used to successfully cross compile other tools (not to say that the procedure is actually right) but I get some errors. Here's what I tried: setenv CC /opt/cross_compiler/ppc/gcc-4.1.0-glibc-2.3.6/po

decrease libprotobuf size?

2008-10-21 Thread idht4n
Are there configuration options to reduce the size of libprotobuf? I'm getting a 1,023,544 byte library stripped for ppc. This is for an embedded system with limited memory. I think we're only using a fraction of the functionality of protocol buffers. (parseFromArray is the only explicit call pl

Re: decrease libprotobuf size?

2008-10-21 Thread idht4n
On Oct 21, 10:31 am, "Kenton Varda" <[EMAIL PROTECTED]> wrote: > Yeah, protocol buffers were designed for servers where we often have absurd > binary sizes already and don't mind that much.  I'm certainly open to the > idea of creating a stripped-down implementation -- though this isn't > someth

Re: strings with fixed length

2008-10-24 Thread idht4n
On Oct 23, 1:43 pm, "Kenton Varda" <[EMAIL PROTECTED]> wrote: > STL strings never shrink.  When they're cleared, they keep their memory > around for reuse.  So, you could take advantage of that to accomplish what > you want by setting all your string fields to values of the maximum size and > th