
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked
Viewed
4 times
I’m a teacher of a beginning C programming class. Some of my students use Macs for their development. I recommend to them to use Xcode with clang and lldb, since it has the best support on their platform. (On other platforms I recommend Eclipse and gcc, since gcc has better support for the C language than Microsoft’s compiler.) Since we’re introducing pointers as part of the course, it would be useful to have a tool like valgrind’s memcheck that will check for the use of uninitialized memory. Is there such a tool that can be used with Xcode? The sanitizer tools referred by https://developer.apple.com/documentation/xcode/diagnosing-memory-thread-and-crash-issues-early don’t explicitly mention checking for the use of uninitialized values.