본문 바로가기

임베디드

[임베디드-eclipse]Eclipse CDT 컴파일 옵션 설정

반응형

이클립스에서 C언어로 임베디드를 개발하고 있습니다.

 

소스코드 프로파일링을 하다보니 소스코드 스택 사용량하는 옵션을 설정하는 방법을 포스팅으로 남깁니다.

 

 


 

-fstack-usage 컴파일 옵션 설정합니다.

 

프로젝트 마우스 우클릭 → property → 좌측탭 C/C++ Build →Settings→Tool Settings 탭 → ARM v7 gcc compiler → Miscellaneous→other flages 에디트박스 맨 뒤에 "-fstack-usage"를 입력

https://stackoverflow.com/questions/26371215/how-to-add-compiler-options-in-eclipse-ide
위 그림은 참고용입니다.

 

컴파일 후 Debug디렉토리에 분석한 디렉토리 속 xxx.su 파일이 생성됩니다.

 

 

 

 

 

 

 

출처 

스택 사용량 추적 : https://dzone.com/articles/gnu-static-stack-usage-analysis

 

GNU Static Stack Usage Analysis - DZone

 

dzone.com

 

컴파일 옵션 설정 : https://stackoverflow.com/questions/26371215/how-to-add-compiler-options-in-eclipse-ide

 

How to add compiler options in Eclipse IDE

I'm creating an application that interfaces with a weather API, and to do so I'm using Poco's HTTPClientSession library, but I'm getting an error at compile time Undefined symbols for architecture

stackoverflow.com

 

반응형