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.

What standard library features cannot be used inside PTLsim?

0
Posted

What standard library features cannot be used inside PTLsim?

0

When simulating a user process, PTLsim runs directly inside that process address space. This design imposes certain restrictions on the ability to link normal userspace libraries (like glibc and Standard C++ STL) to PTLsim, since the stock glibc and libstdc++ will cause interference, corruption and thread deadlocks between PTLsim itself and the user program under analysis. Therefore, we provide our own version of the standard C library and common C++ classes (in SuperSTL, see above) that are specifically tuned to work in the PTLsim environment. Users who wish to extend PTLsim should keep in mind that they are working in an embedded system environment more similar to an OS kernel than a normal userspace program. If you need to use additional libraries that cannot be linked with PTLsim, we recommend logging the required data to a file, then using a normal program (for instance, PTLstats) to actually do the analysis.

Related Questions

What is your question?

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

Experts123