On Thu, Jan 31, 2019 at 10:37:29AM +0100, Sebastian Huber wrote: > My problem is that our real-time operating system (RTEMS) is somewhere in > between a full blown Linux and the offload hardware. I would like to get rid > of stuff which depends on the Newlib struct _reent since this pulls in a lot > of dependencies. The heavy weight functions are just used for the > initialization (env.c) and error reporting. Containing the heap allocation > functions helps to control the memory used by OpenMP computations.
Heap allocations are everywhere in libgomp, not just in initialization, for parallel, offloading, tasking, worksharing constructs, ... You won't get far without that. Jakub