[llvm-dev] Convert commands in make to llmv commands for code analysis

Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Sat Jan 12 21:44:16 PST 2019

This URL mentions using LLVM IR to perform code analysis.


But the first problem to solve is how to convert the commands used in
Makefiles to the corresponding LLVM commands.


The above URL shows the makefile screen output from the bash source
code. Where `gcc -c`, `gcc` (link with -L -l), `ar` are used.

Note that an archive (.a) file is created by combining many .o files
in bash source code make output.

However, LLVM does not have llvm-ld anymore. So there is no way to
create a library file.Mising the ability to create an archive file in
LLVM can cause trouble to mimic the compile flow using make.

Does anybody have any good solution to this problem?


More information about the llvm-dev mailing list