Rockbox Development > Starting Development and Compiling
Writing Code Quicker
crash91:
Good to hear youre switching to linux ;) Also, if you have a dual(or multi) core processor, i remember reading in the wiki, that you should do make -j to make it use all of your cores, or something like that. IT did speed up compile times for me.
MaW:
make -j tells make to try and run builds in parallel if possible. It does this by invoking multiple compiles at the same time, where it thinks that it's safe to do so. The number after -j tells it how many jobs to do at once - typically they say (number of processors or cores) + 1 is a good number.
However, it is known that in some situations it can cause programs to not compile right (or not compile at all), so that's something to be aware of unless Rockbox's Makefiles have been specifically checked to make sure they're okay with make's parallel build system.
AlexP:
make -j[whateveryouwant] works just fine to compile rockbox.
GodEater:
Even "make -j" without the following number, where make tries to work out the best number of things to do at once on it's own works. Llorean and I had a race once, him using just -j, and me using -j3 (number of cores I had plus 1) - I lost!
Llorean:
Just for you cygwin people looking for a point of reference, it takes my Linux computer at home, that cost me $250 to build total, 4 minutes and 41 seconds to SVN update, make clean, and then compile a build for H120, Gigabeat F, Archos Recorder, Nano, and Sansa, and then make zips out of each of those builds and move them to a folder that I can download from over the web.
So, five builds plus zip creation when I frequently hear of 7-10 minute build times for a single build in cygwin.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version