XCode Allocations doesnt work for C? -
i've tried utilize xcode 4.6 allocation instrument c programming code:
#include <stdlib.h> int main(void){ char c[5] = "hello"; unsigned char *p; p = (unsigned char *) malloc(sizeof(p)); *p = 255; homecoming 0; }
but not show allocations:
why?
thanks 2cnicutar
the problem allocations instrument of xcode 4.6 dealing release version of program, hence code optimized.
solution take "debug" mode instead of "release" profile option
c xcode
No comments:
Post a Comment