Download and Install
Download CAC++
CAC++ has been legally registered in the "Registro Territorial de la Propiedad Intelectual de la Junta de Andalucía" with the code: CA-93-17.
Downloads
- CAC++ library (Clang 18, Ubuntu 24.04): cac++.tar (1.6 MB)
- Example of use: example.tar (10 KB)
Installation
CAC++ has been developed and tested using:
- Ubuntu 24.04 / 64 bits.
- LLVM/Clang compiler 18 for 64 bits.
- Libraries of GCC 13.3.0.
Steps
-
Clang 18 is the default version in Ubuntu 24.04. Therefore, the following command will install the required libraries for this version:
sudo apt install clang libclang-devNote: if the installed binary files contain the version, it is recommended to create a symbolic link to use the binaries without the version as follows:
sudo ln -s /usr/bin/clang-18 /usr/bin/clang sudo ln -s /usr/bin/clang++-18 /usr/bin/clang++ sudo ln -s /usr/bin/llvm-config-18 /usr/bin/llvm-config -
Download the file "cac++.tar" (see the Downloads section above) and extract it:
cd download_directory tar xvf cac++.tarThe extracted directory "cac++" contains:
- A static library called libcac.a (for Ubuntu 24.04 and Clang 18). This library will be later linked to the static analysis program associated with an assignment (see Example program).
- The source files and a Makefile to regenerate libcac.a when necessary.
-
Create the static analysis program associated with the assignment using the extracted files, including the header "caclibrary.h" in the main file. This is the moment to add verifications from the library. That is all the teacher needs to do to create the program.