This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, 3/4] Enable libstdc++ DLL: _GLIBCXX_DLL


2009/7/18 Dave Korn <dave.korn.cygwin@googlemail.com>:
> ?This patch follows the current MinGW release approach. ?If you wanted to
> make it automatic, a spec like
>
> "{!%static{!%static-libstdc++:-D_GLIBCXX_IMPORT='__attribute__((dllimport))'}}"
>
> would do the job, wouldn't it?
IMHO this would be a good and more solid approach then to use
something with obvious problematic meaning, like _DLL.

> ?I didn't figure leaving it up to the user was such a bad thing to do. ?It
> gives them the choice of auto-import, and having slightly more efficient
> access to data imports at the cost of slower start-up and less memory page
> sharing, versus explicit dllimports everywhere and having to access data items
> through indirect references.

Even the startup costs can be improved for auto-import by using the v2
relocation by default. It produces much less import tables then the v1
of auto-import.

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]