msgpack-c icon indicating copy to clipboard operation
msgpack-c copied to clipboard

Using msgpack in embedded RTOS environment

Open umanayana opened this issue 7 years ago • 1 comments

I would like to use msgpack in embedded RTOS environment. I have a few questions

  1. I msgpack platform independent?
  2. What porting requirements are there?

Is there anything else I should be concerned about?

umanayana avatar Aug 09 '18 19:08 umanayana

  1. I msgpack platform independent?
  • msgpack-c requires C standard library.
  • If you want to use C++ part, msgpack-c requires C++ standard library.
  • Other system dependent library is wrapped by https://github.com/msgpack/msgpack-c/blob/master/include/msgpack/sysdep.h
  1. What porting requirements are there?
  • It isn't documented.
  • Here is a list, maybe incomplete.
    • msgpack-c uses dynamic memory allocation. If you use C, you need to prepare malloc, free, and realloc. If you use C++, you need to define global new.
  • In addition, it might be helpful: https://github.com/msgpack/msgpack-c/issues/369

redboltz avatar Aug 10 '18 01:08 redboltz