Zeuthen: Writing a C library, part 1
Zeuthen: Writing a C library, part 1
Posted Jun 28, 2011 14:02 UTC (Tue) by crazychenz (guest, #56983)In reply to: Zeuthen: Writing a C library, part 1 by davidz2525
Parent article: Zeuthen: Writing a C library, part 1
Chenz
Posted Jun 28, 2011 20:55 UTC (Tue)
by JoelSherrill (guest, #43881)
[Link]
If you are lucky, the library keeps all this data in a structure so you can use what are often called "per task variables" in an RTOS. This adds the contents of a global pointer to the context of a thread. It is then switched in and out with the thread. RTEMS and VxWorks both have these.
In a similar vein, reusing existing libraries used to dynamically
Zeuthen: Writing a C library, part 1
linked, multi-process environments to a single process, statically linked environment can also lead to symbol name conflicts when global symbols have common names.