PC Review


Reply
Thread Tools Rate Thread

does csc.exe rebuild source files every time?

 
 
seannakasone@yahoo.com
Guest
Posts: n/a
 
      28th Aug 2006
I'm a newbie to csharp. I've just read that there are no object files
(*.obj) in C#. So a command such as this will build my.exe straight
from the source files.

csc.exe /out:my.exe *.cs

Does csc.exe build every source file everytime this command is issued?
Or does it somehow know which source files are newer and build
selectively.

 
Reply With Quote
 
 
 
 
Barry Kelly
Guest
Posts: n/a
 
      28th Aug 2006
(E-Mail Removed) wrote:

> I'm a newbie to csharp. I've just read that there are no object files
> (*.obj) in C#. So a command such as this will build my.exe straight
> from the source files.
>
> csc.exe /out:my.exe *.cs
>
> Does csc.exe build every source file everytime this command is issued?


Yes.

> Or does it somehow know which source files are newer and build
> selectively.


C# is not compilable on a forward-only basis like C, C++ & Delphi, and
there are no intermediate files as you know, so it compiles everything.

Typically, the unit of dependency analysis is the assembly. One can use
MSBuild or NAnt or even make to determine whether or not to build an
assembly based on its sources.

-- Barry

--
http://barrkel.blogspot.com/
 
Reply With Quote
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      29th Aug 2006
(E-Mail Removed) wrote:
> I'm a newbie to csharp. I've just read that there are no object files
> (*.obj) in C#. So a command such as this will build my.exe straight
> from the source files.
>
> csc.exe /out:my.exe *.cs
>
> Does csc.exe build every source file everytime this command is issued?
> Or does it somehow know which source files are newer and build
> selectively.


It build everything, but that is usually not a problem.

Computers are fast today.

And what takes time in a C/C++ compiler is usually:
- the disk IO for temporary files that csc does not have
- the optimization process which is not done by csc but by
the runtime JIT

Arne
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to rebuild to original received date/time on outlook 2003? Marcelo Rojas Microsoft Outlook VBA Programming 0 28th Apr 2009 05:02 PM
Rebuild Time! Alf General 61 22nd May 2008 07:07 PM
time to rebuild Talal Itani Windows XP General 11 19th Apr 2007 08:55 PM
Reg cleanup of pdb files during rebuild rohinichandrap@gmail.com Microsoft VC .NET 0 25th May 2006 07:46 PM
Source for Brother DR250 rebuild parts ? nospam4me@nospam.com Printers 0 17th Feb 2004 12:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:56 PM.