Re: Delphi to take advantage of multiple threads within the compiler>
- From: "marc hoffman" <spam@xxxxxxxxx>
- Date: Thu, 23 Jun 2005 09:31:45 +0200
Arthur,
> I have been using a tool called "stripreloc" for years - it removes all
> relocation info from executables and makes them much smaller. It has
> never caused any problems. Is the paragraph above just a piece of
> nonsense? Does it *ever* happen, that Windows must relocate an executable?
> I recall that Windows opens 32-bit linear executables as memory-mapped
> files and directly maps them into code space!
Only dlls need to be rebased; Since the .exe is the first module that gets
loaded, there's nothing from keeping it getting loaded in it's "preferred"
default location. dlls frequently need to be rebased (unless they have been
optimized for a particular executable) since the exact layout of all other
dlls might not be available when building the dll, so it's next to
impossible to build a dll that has a default base address that will /never/
conflict with any of the other dlls that get loaded in a process.
Chances are you only used StripReloc on .exe files, which in practice is
just fine (although, iirc, it's not officially guaranteed that it is); if
you ever StripReloc a dll, you will probably have problems ;)
--
marc hoffman
Chief Architect, .NET
RemObjects Software
http://www.chromesville.com
and the fifty-two daughters of the revolution
turn the gold to chrome
.
- Follow-Ups:
- Re: Delphi to take advantage of multiple threads within the compiler>
- From: Arthur Hoornweg
- Re: Delphi to take advantage of multiple threads within the compiler>
- References:
- Delphi to take advantage of multiple threads within the compiler>
- From: Fikret Hasovic
- Re: Delphi to take advantage of multiple threads within the compiler>
- From: Eric Grange
- Re: Delphi to take advantage of multiple threads within the compiler>
- From: Ralf Mimoun
- Re: Delphi to take advantage of multiple threads within the compiler>
- From: Mike Swaim
- Re: Delphi to take advantage of multiple threads within the compiler>
- From: marc hoffman
- Re: Delphi to take advantage of multiple threads within the compiler>
- From: Eric Grange
- Re: Delphi to take advantage of multiple threads within the compiler>
- From: Arthur Hoornweg
- Delphi to take advantage of multiple threads within the compiler>
- Prev by Date: Re: Software Sales
- Next by Date: Re: Want VMWare 5 free?
- Previous by thread: Re: Delphi to take advantage of multiple threads within the compiler>
- Next by thread: Re: Delphi to take advantage of multiple threads within the compiler>
- Index(es):
Relevant Pages
|