cONNXr icon indicating copy to clipboard operation
cONNXr copied to clipboard

user supplied allocator/printing aka removing stdlib/stdio dependencies

Open nopeslide opened this issue 4 years ago • 2 comments

currently we are using malloc & printf all over the place, ignoring platform specific implementation. I would like to replace these calls so users can provide their own allocators and logging functions

nopeslide avatar Jul 15 '20 10:07 nopeslide

Note that protobuf-c.c also relies on malloc. protobuf_c__allocator can be used to change the alloc and free functions. Can be a good idea to copy the way protobuf-c.c handles allocation.

alrevuelta avatar Jul 16 '20 11:07 alrevuelta

maybe we should provide something like a platform.{c,h} in which we collect all the stdlib/stdio functions we use

nopeslide avatar Aug 16 '20 16:08 nopeslide