[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cdt-dev] MSVC (was Build Again)
- From: Doug Schaefer <cdtdoug@xxxxxxxxx>
- Date: Wed, 28 Apr 2010 09:25:21 -0400
- Delivered-to: firstname.lastname@example.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=cRTq9DUoK0VibBY+udrsJj6yalYOypDrQH2VyX/w2F8=; b=Xo6g1aOqM6imv2WUsXzhcqAGbccOlwYGIlr+VY0D/rVTjPCO66XTq78b2tSRxwCahq SHMUdw/QIZHU/9VhY+giEttqjqb2tyLtyopgQdAA6RBcIwv1+tR+gX8I3iwf/NzQPe8y C9NzX4+UHbMzJ9CkKPSoPjQoTpENDoJrKUVa8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LJ5kZgegKKYXMl3V5arSfZLxnJBPV8gRGs70D0Fo85Vj/ev9ar00eXmw0lp5WDmEG+ PXJdXW2FD0S6Lf331tX3ZQP64mQNX7LRZ3NjPYLOfikDBGM7MheocU64KuHcF5yQKV/y 2iM94UWUCOoX7NyorUAttyrLQ0aiNOPX1ZqUw=
On Wed, Apr 28, 2010 at 3:49 AM, Jesper Eskilson <jesper.eskilson@xxxxxx>
But if cl.exe is only invoked with one source file at a time, how can it parallellize over all the source files? As I understand it, the /MP flag allows the compiler to parallellize over the source files it receives on the command line.
On 2010-04-27 13:40, Axel Müller wrote:
On 2010-04-27 10:08, Axel Müller wrote:
The visual compiler itself can do parallel builds. You need to
the compiler flag /MP? (? is the number of parallel builds).
Yes, but that requires that all the source code you need to build
passed to cl.exe in one invokation, something the VS IDE can do,
makefiles typically don't. Maybe NMAKE has some special syntax to
There is no special syntax. You just pass the additional compiler
flag to the compiler. We are using this at our company w/o any
How does your NMAKE makefiles look which handles this?
It wouldn't be that complicated. You'd probably do it the same way you pass the list of object files to the linker.