9/19/2023 0 Comments Lyx windows 10![]() ![]() I though I should visit the BIOS settings, where I disabled the “AMD PowerNow!” feature in Bios. While compiling I noticed in “Task Manager” that the CPU speed was fluctuating, even though I selected “High Performance Mode” in Lenovo’s tools. But then again I have more, and faster CPU cores on this laptop than the old one. I guess the Clang code base got bigger, and the C++ compilers got complexer. Three years ago on my old laptop it took like 20m to build the libclang target. MinGW 7.3.0 64 bit: 52m:43s for the libclang target, and 22m:02s for install.Visual C++ 2017 64 bit: 43m:36s for the libclang target, and 22m:27s for install.I downloaded LLVM and clang source packages, unpacked them like this (using Git Bash):Ĭmake -build llvm-7.0.1.build -target libclangĬmake -build llvm-7.0.1.build -target install Now to see how the Ryzen CPU performs at compiling a project like LLVM/Clang. It is very nice to have Qt with batteries included (MinGW GCC compiler, GDB Debugger, and Qt libraries)! Building libclang “Windows Software Development Kit - Windows 3.132” and select the “Debugging Tools for Windows”. One needs to get the cdb.exe debuggers to be able to debugīecause I had installed Visual Studio 2017 community, I only had to go to Control Panel to “Programs and Features” and “Change” the It was nice not to hunt for MinGW GCC builds. ![]() This is not something new, the download.qt.io/official_releases/qt has this one executable bundle since Qt 5.9.0. The above package has the Qt 5.12.2 Visual C++ 2017 32 and 64bit, MinGW GCC 7.3.0 32 and 64bit Qt and compiler / debuggers. ![]() Then I went to get the Qt 5.12.2 builds, and to my surprise, instead of various compiler builds of Qt, there was only one: qt-opensource-windows-x86-5.12.2.exe 3.7GiB. I installed Visual Studio 2017 Community Edition, for the Visual C++ 2017 compilers. Since my A485 Thinkpad was brand new I had to set up my development environment. How many seconds would it take libclang to parse the file? TL DR? 3 seconds! Setting up the development environment I upgraded my laptop to a Lenovo A485 Thinkpad with an “AMD Ryzen U w/ Radeon Vega Mobile Gfx 2.20 GHz” CPU. Now I am going to test Qt Creator 4.8.2, Qt 5.12.2, LLVM/Clang 7.0.1, MinGW GCC 7.3.0, and Visual C++ 2017. I tested on a Lenovo W510 Thinkpad with an “Intel(R) Core (TM) i7 CPU M 620 2.67 GHz” CPU. In the meantime the Clang Code Model has been enabled by default in Qt Creator 4.7. With the help of Profile Guided Optimization I was able to go down from 10 seconds to 6 seconds. In which I was having a look at how the experimental Clang Code Model was handling a particular source code file. These steps were extracted and interpreted from the Lyx Wiki.In this article I am revisting an article from three years ago: “Speeding up libclang on Windows”,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |