I have no answer to your question, but consider using the c version
instead of c++. For my application it meant reducing code size (with
libprotobuf statically linked) from 800kb to approx 80kb.

/Magnus


-----Original Message-----
From: protobuf@googlegroups.com [mailto:proto...@googlegroups.com] On
Behalf Of shaw.softw...@gmail.com
Sent: den 9 februari 2009 11:21
To: Protocol Buffers
Subject: Using protocol buffers in 16 bit environments: Suport for 16
bit ints


I considering using protocol buffers to communicate between a PC and a
16 but embedded environment (using C++). Protocol buffers support only
32 bit ints, known as longs on   on the embedded platform.

I'm imagining I can either

1) include some conditonal typdefs to sort this out, on the embedded
side redefining int in the generated protoc classes as long
or
2) attempt to extend protocol buffers to support 16 bit ints

The later,while cleaner and more efficient for the  transmitted data,
might be beyond my capabilities. Any advice out there?

Thanks,

Peter




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to