xdc -j4 [message #769260] |
Wed, 21 December 2011 12:10  |
Eclipse User |
|
|
|
I feel like I just discovered gold... Here are two quick benchmarks building the same set of packages:
xdc clean -PR ./ti/sdo
xdc -PR ./ti/sdo
--> 100 seconds for the build
xdc clean -PR ./ti/sdo
xdc -j4 -PR ./ti/sdo
--> 41 seconds for the build
Is there any danger or downside to this? In other words, is there any reason why I wouldn't want to do this all the time? If not, I think we need to try to raise better awareness, particularly in people complaining about build times!
|
|
|
Re: xdc -j4 [message #769294 is a reply to message #769260] |
Wed, 21 December 2011 13:43   |
Eclipse User |
|
|
|
Brad,
we had a problem before, where we used to build packages for multiple targets for the "whole_program" profile, using the -j option. There were some temporary files that had the same name for different targets, and we couldn't change the names of these files. Since then, the "whole_program" profile was deprecated, and I guess that ti.sdo packages were never built with it.
So, that particular problem might not be relevant anymore, but there could be others. That said, I use the -j option whenever I can and when there are race conditions, the symptoms are easy to recognize. Some generated files are incomplete, and then tools (Java and C compilers) that consume such files would mark them as invalid.
As for people complaining about build times, I remember such complaints from users building single applications and such users wouldn't benefit from the -j option. If there are similar complaints from users who build multiple packages, we could tell them about -j. The natural place for that would be in the docs for the xdc command. Is there any other document you would suggest?
|
|
|
|
|
|
Re: xdc -j4 [message #779574 is a reply to message #778480] |
Sun, 15 January 2012 23:24  |
Eclipse User |
|
|
|
On 1/12/2012 11:35 AM, Brad Griffis wrote:
> The info is all there, no doubt. I guess the main point of the thread is
> that many developers won't be able to connect the dots on all this stuff
> in order to get a blazing fast xdc build.
Sorry, I guess I was implicitly asking where else to put the information.
> I was thinking of something to
> speak to people at that level, i.e. an FAQ entry somewhere to the effect
> of, "Is there any way to make xdc build faster?" where the answer is
> something to the effect of, Yes, you often can utilize the --jobs option
> from make since xdc is just a wrapper to make. Therefore building your
> code using "xdc --jobs 4" on a quad-core computer would see a much
> faster build time.
I'll add something the the Build FAQ in the RTSC-pedia. Where else
would you have looked?
|
|
|
Powered by
FUDForum. Page generated in 0.06393 seconds