Kapil,
we have about 1600 source files with 2.5 mio. lines of code, hence the
linking time is huge, but not unfair.
If splitting into DLL's would speed up linking, then we would try to do
this. Is it possible/preferable to migrate our old unmanaged code into DLLs
rather than the CLR code? Is there a benefit for having many DLL's rather
than just a few?
Again, thank you for your help.
Michael
> > > Hello Kapil,
> > > the linker output is:
[quoted text clipped - 43 lines]
>
> Kapil
Kapil Khosla [MSFT] - 17 May 2005 20:11 GMT
> Kapil,
> we have about 1600 source files with 2.5 mio. lines of code, hence the
[quoted text clipped - 53 lines]
> >
> > Kapil
Hello Michael,
The reason for splitting your code into dll's you want to keep the code
executed most often in a separate unit than the one which is not executed
that often. There is no benefit of having many dll's instead of just a few. I
would just rearchitect your code to make the commonly executed parts in
separate units.
Regarding your second question,
> Is it possible/preferable to migrate our old unmanaged code into DLLs
> rather than the CLR code.
You can have Dll's in managed code as well. One option is that you can keep
your Dll's native and use C++ interop to provide an interface for your native
dll.
http://msdn2.microsoft.com/library/2x8kf7zx(en-us,vs.80).aspx
This approach requires very little work from your end.
The other option is ofcourse you move your native code to managed code and
then rearchitect and then your applicaiton will be completely managed and you
wont need to use PInvoke or C++ interop.
Thanks,
Kapil