POV-Ray : Newsgroups : povray.off-topic : Unix shell : Re: Unix shell Server Time
3 Sep 2024 21:17:38 EDT (-0400)
  Re: Unix shell  
From: Darren New
Date: 30 Jan 2011 15:56:34
Message: <4d45d082@news.povray.org>
Darren New wrote:
> Warp wrote:
>>> In Ada, you don't calculate the checksums of every source. You 
>>> calculate the checksum of the file you're compiling when you compile 
>>> it. In C#, your file is either associated with a project (i.e., with 
>>> the equivalent of a makefile) or it's installed in the global 
>>> assembly cache with a version number and a cryptographic checksum on 
>>> it you can check against.
>>
>>   So if you have thousands of files in your project, the compiler will
>> calculate the checksums of every single one of them every time you want
>> to compile? And it was you who complained how creating makefile rules for
>> C files is inefficient... Right.
> 
> Read the second sentence again. You calculate the checksum of the file 
> when you compile it. You then store that in the object code.

Oh, and just as an aside, GNAT did it this way for a while, and then they 
found it really was faster to actually re-read the header file and generate 
the checksum and (essentially) recompile it than it was to track a separate 
object file for the header file. So, yeah, in practice, not a problem. Read 
their documentation for details. :-)

-- 
Darren New, San Diego CA, USA (PST)
  "How did he die?"   "He got shot in the hand."
     "That was fatal?"
          "He was holding a live grenade at the time."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.