LliujinyeCMake: fix add compile options
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
mm: Fix some typos Signed-off-by: xuxingliang <xuxingliang@xiaomi.com> | 11 个月前 | |
CMake: fix add compile options Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com> | 11 个月前 | |
libbuilin/compiler_rt: Organize make.defs and eliminate compilation warnings Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com> | 11 个月前 | |
libs: add gcov framework support In devices without storage media, you can export data to the command line and then generate the corresponding gcda file It can save the result output by calling __gcov_info_to_gcda The usage is similar to: https://gcc.gnu.org/onlinedocs/gcc/Freestanding-Environments.html#Profiling-and-Test-Coverage-in-Freestanding-Environments Usage: ./tools/configure.sh qemu-armv7a:nsh Modify the configuration +CONFIG_COVERAGE_ALL=y +CONFIG_COVERAGE_MINI=y +CONFIG_SYSTEM_GCOV=y Run: qemu-system-arm -cpu cortex-a7 -nographic -smp 4 \ -machine virt,virtualization=off,gic-version=2 \ -net none -chardev stdio,id=con,mux=on -serial chardev:con \ -mon chardev=con,mode=readline -kernel ./nuttx/nuttx -semihosting -s | tee gcov.txt ./nuttx/tools/gcov_convert.py -i ./gcov.txt ./nuttx/tools/gcov.sh -t arm-none-eabi-gcov Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 11 个月前 | |
gcov: Support for the most streamlined profile of LLVM-embedded-toolchain-for-Arm 1. Excerpted from: https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/blob/main/samples/src/cpp-baremetal-semihosting-prof/proflib.c 2. Since llvm profile supports more than just gcov, and some features have not yet been explored, two clang gcov implementations are supported after this patch 3. Using this lib only supports the gcov compilation options of "-fprofile-instr-generate -fcoverage-mapping" 4. This file is heavily dependent on the compiler clang version, and is currently aligned with ci, supporting 17.0.1 and below. 18 and above are not supported by this library due to different internal implementations of the compiler Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com> | 11 个月前 |