smuehlst / circle-stdlib

Standard C and C++ Library Support for Circle
GNU General Public License v3.0
90 stars 17 forks source link

Memory stdlib #3

Closed koparasy closed 6 years ago

koparasy commented 6 years ago

I need dynamic allocation of data. Should i link my source code with the malloc provided by circle or the malloc provided by libc.

Thank You

smuehlst commented 6 years ago

You can simply use C malloc() or C++ new, and link your application with libc.a, libcirclenewlib.a and the Circle libraries, as demonstrated with the applications in the samples subdirectory. The modified newlib version built from subdirectory libs/circle-newlib does use Circle's malloc internally, so there's no need to worry about where it comes from.