본문 바로가기
프로그래밍 언어/C++

build 옵션

by 규봉봉이 2023. 3. 30.


static_assert(조건, 설명)
memory leak tool


g++ 컴파일 옵션
-o : output의 이름 설정
-Wall : warning을 모두 보여줌
- Werror :  warning을 error로 간주
-std={} : {}에 들어가는 c++ 버전으로 빌드
- g : 컴파일의 세부 정보 출력
-O0 : 최적화 숫자 (optimazation level)
-march={} : machine archtecture
-c : object 파일 생성
-S: 어셈블리 생성