MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

TafoidAdministrator
I keep on testing.. testing.. testing... into the future!
Reged: 04/19/06
Posts: 3135
Loc: USA
Send PM
Re: MAKE - the -j option
02/25/16 01:36 AM


> Dear all,
> can someone please be so kind and give me a layman explanation of the -j option in
> MAKE command?
> I do understand that it's something related to my CPU, but would like to understand
> what the number after the -j means, and what would be the best for me.
>
> Thanks in advance for your help.

-j [num], --jobs[=num] Allow num jobs at once; infinite jobs with no argument.

The general accepted amount to put in there is number of CPU cores +1 for anything 2 cores or more.
Dual core cpu? -j3
Quad core cpu? -j5
Dual-Quad core? -j9

Also, if you have large amounts of RAM you sometimes can add 1 or more to the value. In the end, it allows for faster compiling by using all CPU cores to accomplish the tasks. Just be wary of slower HD's or other media - you may not be able to be successful with those settings mentioned. Other utilities, too, might interfere (real time virus scanning, GIT caching (depending on client) or anything else that might fight for control over new files being created.







Entire thread
Subject Posted by Posted on
* MAKE - the -j option f205v 02/24/16 11:16 PM
. * I gonna bookmark this. Very useful to me. Dullaron  03/15/16 07:40 PM
. * Re: MAKE - the -j option TafoidAdministrator  02/25/16 01:36 AM
. * Re: MAKE - the -j option Dullaron  02/26/16 04:17 AM
. * Re: MAKE - the -j option MooglyGuy  02/26/16 03:38 PM
. * Re: MAKE - the -j option Dullaron  03/10/16 10:15 AM
. * Re: MAKE - the -j option Roberto Fresca  03/09/16 05:51 PM
. * Re: MAKE - the -j option Olivier Galibert  02/26/16 09:50 PM
. * Re: MAKE - the -j option krick  02/27/16 04:16 AM
. * Re: MAKE - the -j option Robbbert  02/27/16 04:39 AM
. * Re: MAKE - the -j option R. Belmont  03/15/16 04:50 PM
. * Re: MAKE - the -j option Roberto Fresca  03/09/16 05:48 PM
. * Re: MAKE - the -j option MooglyGuy  02/27/16 02:53 PM
. * Re: MAKE - the -j option redk9258  02/27/16 07:58 PM
. * Re: MAKE - the -j option MooglyGuy  02/28/16 08:57 AM
. * Re: MAKE - the -j option krick  02/28/16 11:58 AM
. * Re: MAKE - the -j option MooglyGuy  02/28/16 03:35 PM
. * Re: MAKE - the -j option Robbbert  02/27/16 10:11 PM
. * Re: MAKE - the -j option R. Belmont  02/25/16 05:30 PM
. * Re: MAKE - the -j option f205v  02/27/16 12:33 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 108 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3548