clang recommendation

General FreeBASIC programming questions.
Post Reply
srvaldez
Posts: 3393
Joined: Sep 25, 2005 21:54

clang recommendation

Post by srvaldez »

the gcc toolchain distributed by Equation Solutions is for the most part statically linked, so I thought what would happen if I added clang ?
so I chose the llvm toolchain by https://github.com/mstorsjo/llvm-mingw/releases
as in my previous experiment I added clang.exe and try to compile, it gave the message clang-18: Invalid argument
so I added clang-18.exe and try again, this time it complained about missing dlls, I started adding dlls expecting 100+ dlls but it only required 4 dlls wow!, two exe's plus four dlls, clang.exe, clang-18.exe, libclang-cpp.dll, libc++.dll, libLLVM.dll and libunwind.dll
I think that it's worth testing and see if there are any issues, the performance of the produced exe seems to be better than with the previous toolchain
now if we could only build FB with this toolchain 😁
I tried, but it chokes when it tries to link to libgcc which is absent
Post Reply