A good example to follow is ildbsymbols.dll, in
clr\src\tools\ildbsymbols.

1. ildbsymbols has an ildbsymbols.def file that was manually authored
and is included in the tarball.  The "sources" file in
clr\src\tools\ildbsymbols references it via "DLLDEF=ildbsymbols.def".

2. The purpose of coffbase.txt is to specify the preferred load address
of each DLL built, to ensure that no two DLLs overlap in memory and
force a relocation.  This is a load-time performance optimization, so
the consequences of getting it wrong are close to zero.  For your DLL,
you could place your DLL immediately after SOS by choosing a base of
0x602B0000 (SOS's base is 0x60260000 and its length is 0x0004B000...
0x60260000+0x0004B000=0x602AB000, rounded up to the next highest 64k).
If the value is too small, you'll get a linker warning and should adjust
your DLLs size in coffbase.txt.  If the value is too large, you just
fragment the address space of the process a little bit.  To start with,
pick a length of 0x00010000.

Barry

-----Original Message-----
From: Discussion of the Rotor Shared Source CLI implementation
[mailto:[EMAIL PROTECTED] On Behalf Of Archana
Sent: Sunday, June 20, 2004 9:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET-ROTOR] Accessing the class in different source
folder

Hi,
 this is wrt a previous posting in this group which says how to limit
code
into a separate folder and expose it as a dll. i have been trying to do
the same for the GC module.
could you please explain the following wrt the steps outlined below?
1. how is the DLLDEF file created?
2. the coffbase.txt already has entries regarding base address,length
etc.. for each DLL. in what way should a new entry be made?

Thanks & Regards
archana

 -------- Original Message --------
Subject:        Re: [DOTNET-ROTOR] Accessing the class in different
source folder
Date:   Sun, 6 Jul 2003 09:50:55 -0700
From:   Barry Bond <[EMAIL PROTECTED]>
Reply-To:       Discussion of the Rotor Shared Source CLI implementation

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com
ASP.NET courses you may be interested in:

Guerrilla ASP.NET
15 March 2004, in Boston, MA
17 May 2004 in Torrance, CA
7 June 2004, London, UK

http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
ASP.NET courses you may be interested in:

Guerrilla ASP.NET
15 March 2004, in Boston, MA
17 May 2004 in Torrance, CA
7 June 2004, London, UK

http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to