ARM Semi-Hosting question Sysprogs forums › Forums › VisualGDB › ARM Semi-Hosting question This topic contains 2 replies, has 2 voices, and was last updated by sidprice 1 week, 3 days ago. Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) Author Posts March 14, 2018 at 00:39 #20389 sidpriceParticipant I am using the above to help debug and trace my project code, however I am not sure what to do for my production code. In the settings for my embedded project I can disable semi-hosting, do I also need to remove the “printf” calls that were sending output through the debug pod using semi-hosting? Thank you, Sid March 14, 2018 at 03:04 #20391 supportKeymaster Hi, Yes, you would need to remove the calls to printf(). The easiest way to do this would be via using conditional compilation, e.g. C++ #ifdef _DEBUG #define LOG(...) printf(__VA_ARGS) #else #define LOG(...) #endif 12345 #ifdef _DEBUG#define LOG(...) printf(__VA_ARGS)#else#define LOG(...)#endif March 14, 2018 at 17:56 #20394 sidpriceParticipant Excellent, thanks again, Sid Author Posts Log In Register Lost Password Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic.