Hi, I am developing my register allocation algorithm in Visual Studio, and I am hitting long compile times. I am wondering if there is a way to cut down the time it takes for llc to link?
- Thanks
- Jeff Kunkel
Hi, I am developing my register allocation algorithm in Visual Studio, and I am hitting long compile times. I am wondering if there is a way to cut down the time it takes for llc to link?
Jeff Kunkel <jdkunk3@gmail.com> writes:
Hi, I am developing my register allocation algorithm in Visual Studio, and I
am hitting long compile times. I am wondering if there is a way to cut down
the time it takes for llc to link?
Please describe your setup and the precise spot(s) that are
slow. Linking llc.exe on release mode takes a few seconds on VS 10
running on a VMWare virtual machine. I'm sure it is quite slower on
debug mode, but that is a consequence of using static libraries and LLVM
being fat.
I’m just running VS 10 in debug mode. In a step by step set up:
Eh, I guess I will live. I was just wondering if some quick fixes were known. It seems that I lose 5 to 15 minutes per hour for compiling.
Jeff Kunkel <jdkunk3@gmail.com> writes:
I'm just running VS 10 in debug mode. In a step by step set up:
1. I download the svn
2. I make my changes
3. I compile the libraries
4. I make changes to the code within my project
5. I compile my code, and I re-link llc with my changed files.
6. I repeat 4,5, and 6 until it finally works.
Well, that is hardly unexpected and adds little information to this
issue. The Output window on the IDE shows what the build is doing at
every moment and there you can see where it slows down.
Do you usually touch anything that requires tablegenning? A VC++
application compiled with debug settings is *much* slower that its
release-mode incarnation.
No, table gen only runs if I change a library as expected. I was just fed up at the waiting and wanted to know if anyone else has, and if they had found a fix to the problem.
-Jeff
Just my 2 cents. Is LTO enabled ? My experience with LTO in Visual Studio is that it significantly slows down link step.
-- Jean-Daniel
No, but I think I found something useful. Under “llc Properties Pages-> Configuration Properties->Code Generation” seems to be where some of the debug information may be turned on or off.