---+!! LLVM/Clang Static Analyzer %TOC% ---++ Instructions (Linux) * Follow the instructions in HowToCompile * Build LLVM and Clang: http://clang.llvm.org/get_started.html * Copy llvm/Debug/bin/clang-cc and the following files to the RB build diretory.<br/> "llvm/tools/clang/utils": ccc-analyzer, scan-build, scanview.css, sortable.js * Because Clang doesn't seem to handle ARM ASM, uncomment all ASM parts in:<br/> firmware/target/arm/system-arm.h<br/> firmware/target/arm/system-target.h<br/> There are many more places with ASM which stop the parser,<br/> but these 2 files get included very often..<br/> * Go to the build directory. * Add the compiler to the path:<br/> "export PATH=$PATH:/usr/local/arm-elf/bin/" * Configure (select sansa e200):<br/> "../tools/configure" * Make the dependencies (because Clang can't do that):<br/> "make dep" * Comment out "export CC=.." in the Makefile (build dir) * Add the following directory to the "C include path" (for Clang)<br/> "export C_INCLUDE_PATH=/usr/local/arm-elf/lib/gcc/arm-elf/4.0.3/include/" * Start the compiler:<br/> "./scan-build --use-cc=/usr/local/arm-elf/bin/arm-elf-gcc make"<br/> Report gets saved in /tmp/scan-build-xxx_something * [[%ATTACHURL%/scan-build-2009-03-31-1.tar.bz2][scan-build-2009-03-31-1.tar.bz2]]: A report for a Sansa e200 build.
31 Mar 2009 - 12:41
A report for a Sansa e200 build.
ore topic actions
r1 - 31 Mar 2009 - 12:41:49 -
Copyright © by the contributing authors.