Hi Phong,
In case of the fact that LLBMC seems to be deprecated (i could not download the LLBMC package on my UBUNTU 20.04 system) , i' ve found the solution temporarily with the following command :
clang -S -emit-llvm test.c
As a result of that command , a new file test.ll generated. This file is a
Links
Language Template File, which you can analyze with the help of Flex that creates a deep lexical analysis.
I also found how you can run the file test.c through the following walkthrough :
Firstly , insert the command on line 15 of your source code test.c : printf("thread t1 was created.");
run these commands :
gcc -pthread -o test test.c
./test
That's all.
Yours sincerely ,
Pavlos Pseftoyiannis