Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are the run-time libraries re-entrant?

Libraries re-entrant run-time
0
10 Posted

Are the run-time libraries re-entrant?

0
10

Q: Are the compiler’s run-time libraries re-entrant? Can I call library functions from an interrupt? A: Depending on which compiler you’re using, yes. If the compiler implements reentrant functions at all, then the library is fully reentrant except for the rand() function, which uses a static variable. The compilers that don’t support reentrancy are those with a compiled stack, i.e. 6805, PIC, V8 and 8051 in small and medium models. The 8051 in large model is reentrant. The other compilers – 8086, 68K, 6809, 68HC11, Z80, H8/300 and XA are fully reentrant.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.