memory 썸네일형 리스트형 keil source size => 필요 메모리 크기 size Program Size: Code=10608 RO-data=268 RW-data=80 ZI-data=1632 컴파일하면 결과가 이렇게 나오는데 싸이즈 1. ZI Data: Zero Initialized Data 0 으로 초기화 되거나 값이 할당되지 않은 변수 2. RO Data are the constants. Total RAM Size = RW Data + ZI Data Total ROM Size = Code + RO Data + RW Data 3. Some constants (RO data) are generated by the compiler/linker and might also be from libraries. So they will exist regardless that your program.. 더보기 MFC 메모리 릭 체크시 유용한 방법 2개 https://imcyber.tistory.com/38 에서 가져 왔읍니다.. 제가 참고 하게.. MFC를 사용하여 프로그램을 개발하고 있다면, #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif 위의 코드를 .cpp 화일에 넣어 프로그램이 종료 되었을때 아래와 같이 누수된 메모리를 할당하는 부분의 소스 코드와 라인 수를 출력 해준다. Detected memory leaks! Dumping objects -> d:\sample\sample.cpp(35) : {48} client block at 0x003739D0, subtype 0, 4 bytes long. Data: 28 00 00 .. 더보기 이전 1 다음