Is there a tool that can help me automate the process of identifying all QNX-related system calls?
@Middleware & OS , I'm working on migrating a legacy application from QNX Neutrino to an open-source Linux-based RTOS. I've identified the third-party libraries and device drivers requiring porting.
However, the challenge is analyzing the codebase for dependencies on specific QNX features like
MsgSend
, MsgReply
, and MsgSendPulse
. Since the code was written by another team, I have limited knowledge beyond compilation and execution details.
Is there a tool available that can help me automate the process of identifying all QNX-related system calls or functions used in the code?1 Reply
Hey checkout these tools that can assist in identifying QNX-specific dependencies in your legacy code:
1. Static Code Analysis Tools:
- Tools like https://sourceforge.net/projects/cppcheck/files/cppcheck/ or https://clang-analyzer.llvm.org/ can analyze code without execution. They often flag non-standard functions, potentially highlighting QNX-specific system calls like
MsgSend
and MsgReply
.
2. Source Code Search with Regular Expressions:
- If you know the naming conventions of QNX functions (e.g., starting with "Msg"), you can use grep
or other search tools with regular expressions to locate their occurrences within the codebase.
These tools can provide a starting point for pinpointing QNX dependencies. Remember to examine the flagged functions manually to confirm their purpose and identify potential alternatives in your target RTOS.cppcheck - Browse Files at SourceForge.net
Static source code analysis tool for C and C++ code