android
llvm Preprocessor 미리 정의 된 모든 매크로 확인 방법.
nowoodeel
2021. 6. 15. 11:04
728x90
아키텍처 버전에 따른 llvm에 미리 정의된 모든 매크로를 확인하고 그 값에 따라 소스를 작정할 때 사용한다.
$ cd android-sdk-linux/ndk-bundle/toolchains/
$ echo | ./llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi30-clang++ -dD -E -
Clang -E 옵션을 사용한다.
clang - the Clang C, C++, and Objective-C compiler — Clang 13 documentation
DESCRIPTION clang is a C, C++, and Objective-C compiler which encompasses preprocessing, parsing, optimization, code generation, assembly, and linking. Depending on which high-level mode setting is passed, Clang will stop before doing a full link. While Cl
clang.llvm.org
GCC
Preprocessor Options (Using the GNU Compiler Collection (GCC))
Enable generation of linemarkers in the preprocessor output that let the compiler know the current working directory at the time of preprocessing. When this option is enabled, the preprocessor emits, after the initial linemarker, a second linemarker with t
gcc.gnu.org
반응형