This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
dlltool import library build optimization
- To: binutils at sourceware dot cygnus dot com
- Subject: dlltool import library build optimization
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Wed, 22 Dec 1999 13:27:33 -0600 (CST)
When building large DLLs, especially C++ ones, dlltool can take
inordinately long time to and take the file system to its knees
while it's creating those thousands of small files, one per
symbol. For those who actually have to use a native windows
machine, this can make it almost impossible to use dlltool to
create import libraries with say 10k symbols thanks to all the
files it needs to create first.
I know zilch about bfd backend, so perhaps someone can help me
here. Is there anyway we can bunch up say 100 symbols, create
the archive, and move to the next? The current scheme uses
the following technique:
open a new bfd for writing (output_bfd)
make head bfd
make tail bfd
for each exports
make a new bfd and add it to the chain
done
Reorganize the chain of bfd's
set the output_bfd archive head to the created chain
close output_bfd
Is there a way for creating the output bfd a few at a time? Would
bfd_openw kill the current contents and start from scratch?
Regards,
Mumit