DebuggingΒΆ
Although nOS-V APIs have error checking, it may be useful to build the library with debug symbols enabled
in order to pinpoint bugs and issues. To do so, you can use the --enable-debug
flag at configure time.
Furthermore, it is also possible to build nOS-V with Address Sanitizer enabled. In this mode, the runtime
will assist ASAN by poisoning areas of the shared memory when they are not in use, which may be useful
to find memory bugs in user programs that end up corrupting nOS-V memory. To enable ASAN mode, you can use
the --enable-asan
flag at configure time.