On 01 Dec 2019 18:33, Павел Крюков wrote: > 1 дек. 2019 г., в 17:46, Simon Marchi написал(а): > > Is the sim built in C++ like GDB? If so, maybe this function could return > > an std::string, so there's no more concerns of allocating a static buffer > > with sufficient space? > > No, simulators are built in C. Probably they may be switched to C++, but that would require more effort; plus, there may be external C simulators. i've been thinking about the sim & C-vs-C++. the only reason i hesitate to go all in is that we provide libsim.a for people to link the runtime into other programs, and providing a static lib that requires C++ feels wrong. gdb has the advantage that it doesn't provide a library interface. maybe it should ... -mike