-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile the code in the chapter2? #5
Comments
|
Hi,
https://jonathan2251.github.io/lbd/llvmstructure.html#build-libraries-and-td
Next configure the Cpu0 example code to chapter2 as follows,
~/llvm/test/llvm/lib/Target/Cpu0/Cpu0SetChapter.h
#define CH CH2
And suppose You have installed llvm with Cpu0 as follows,
https://github.com/Jonathan2251/lbd/blob/master/README.md
Jonathan
從我的iPhone傳送
… Yanjie Xu ***@***.***> 於 2022年6月3日 上午4:18 寫道:
Hello, Jonathan. You tell us how to transfer the LLVM IR into the target CPU instructions in this http://jonathan2251.github.io/lbd/llvmstructure.html. I learned a lot. but I am still confused that how to compile the code in chapter2. Could you list the steps to compile the code in chapter2? Thank you very much!
Benji Xu
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
wait.... can you speak chinese? |
I git clone the llvm-project and lbd. I follow the tutorial in the page to install the llvm by running the install-llvm.sh. `root@localhost:/home/backend# ls lbd llvm-project root@localhost:/home/backend# file llvm-project/test/llvm root@localhost:/home/backend# cp -rf lbd/lbdex/llvm/modify/llvm/* llvm-project/test/llvm root@localhost:/home/backend# cd lbd/lbdex/install_llvm/ Then, I got this error: CMake Error at lib/Support/CMakeLists.txt:294 (get_library_name): How can we solve this problem? |
Hello, Jonathan. |
After I compiled the llvm with readme in lbd, I was going to check the cpu0 keyword with this command: `root@vultr:~# cp -rf /root/lbd/lbdex/llvm/modify/llvm/* /root/llvm/test/llvm/. root@vultr:~# grep -R "cpu0" ~/llvm/test/llvm/include The output is a little bit different from the tutorial on this page: |
Hello, Jonathan |
Hello, Jonathan. You tell us how to transfer the LLVM IR into the target CPU instructions in this
http://jonathan2251.github.io/lbd/llvmstructure.html
. I learned a lot. but I am still confused that how to compile the code in chapter2. Could you list the steps to compile the code in chapter2? Thank you very much!Benji Xu
The text was updated successfully, but these errors were encountered: