DDK build

I’m curious to know the significance of build options ‘[-M [n]]
Multiprocessor build (for MP machines)’?

BUILD: Version 4.22.3667

Any idea?

Thanks,
Hakim

It will use up to n processes to build your project. It can dedicate
one process per entry in the DIRS directive in a dirs file
(recursively). (That means that if you are building only one
directory, this has no affect whatsoever).

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Hakim
Sent: Wednesday, January 12, 2005 8:47 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] DDK build

I’m curious to know the significance of build options ‘[-M [n]]
Multiprocessor build (for MP machines)’?

BUILD: Version 4.22.3667

Any idea?

Thanks,
Hakim


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

If your build machine has more than one processor (physically, or virtually
through HyperThreading), you can specify -M or -M 2 for instance. It causes
the BUILD to start a number of parallel compilation tasks (default is the
number of processors, I believe). If you don’t specify -M, the build
process will do one compilation at a time, thus taking more time to
complete. Some people say that you get better performance on a system if
you run (n+1) where n is the number of processors.

Obviously, if the build machine has only one processor, this feature will
either do nothing (if you don’t specifiy a number) or cause the build
process to go slower (if you do specify a number), as you get more
taskswitching to no benefit.


Mats

xxxxx@lists.osr.com wrote on 01/12/2005 04:46:53 PM:

I’m curious to know the significance of build options ‘[-M [n]]
Multiprocessor build (for MP machines)’?

BUILD: Version 4.22.3667

Any idea?

Thanks,
Hakim


Questions? First check the Kernel Driver FAQ at http://www.
osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

ForwardSourceID:NT0000AB9A

See the DDH Help topic “Build Utility Command-Line Options”.

“Multiprocessor build. Without threads, the -M switch causes Build to launch
one thread for each processor. If threads is present, it specifies the exact
number of threads to spawn. When -M is used without threads on a
single-processor computer; it has no effect.”

Thomas F. Divine, Windows DDK MVP
http://www.pcausa.com

“Hakim” wrote in message news:xxxxx@ntdev…
> I’m curious to know the significance of build options ‘[-M [n]]
> Multiprocessor build (for MP machines)’?
>
> BUILD: Version 4.22.3667
>
> Any idea?
>
> Thanks,
> Hakim
>
>
>
>