Re: [Mingw-w64-public] static libgcc in multiple shared libraries

2015-04-01 Thread Yaron Keren
Hi, Having different libgcc copies used from different parts of your program may be a big problem or not, depending upon how it is used in your program. Different libgccs do not share data, so C++ exceptions will not work between different libgccs. Your C program may not care for exceptions but dy

Re: [Mingw-w64-public] static libgcc in multiple shared libraries

2015-04-01 Thread Greg Jung
My 2c, which is not authoritative but perhaps can throw a few more topics into the mix. First remember this: there are compiler-specific versions of libstdc++, incompatible but nevertheless named the same, dependent upon the exception method deployed by the compiler. AFAIK the only way to force a

Re: [Mingw-w64-public] [ANN] Website changes

2015-04-01 Thread Jason Curl
On 30/03/2015 22:03, Adrien Nader wrote: >> Hi, on the page: http://mingw-w64.yaxm.org/doku.php/documentation >> the link to "libmangle" is broken. Clicking on it takes me here: >> http://mingw-w64.yaxm.orglibmangle/ > Thanks for the notice. This was due to an overly simple rewrite rule. > Libmangl

Re: [Mingw-w64-public] printf speedup [PATCH]

2015-04-01 Thread Dongsheng Song
On Wed, Apr 1, 2015 at 4:33 PM, Martin Mitáš wrote: > > > Dne 1. 4. 2015 v 10:13 Mattias Engdegård napsal(a): > > 1 apr 2015 kl. 05.35 skrev Dongsheng Song : > > > >> In my testing, getenv() is very fast. > >> > >> *) unset PRINTF_EXPONENT_DIGITS > >> > >> preheat 1 times, then perform 10

Re: [Mingw-w64-public] printf speedup [PATCH]

2015-04-01 Thread Martin Mitáš
Dne 1. 4. 2015 v 10:13 Mattias Engdegård napsal(a): > 1 apr 2015 kl. 05.35 skrev Dongsheng Song : > >> In my testing, getenv() is very fast. >> >> *) unset PRINTF_EXPONENT_DIGITS >> >> preheat 1 times, then perform 100 times (use 4.6 seconds) >> getenv cost: 4.6 us >> >> *) set P

Re: [Mingw-w64-public] printf speedup [PATCH]

2015-04-01 Thread Mattias Engdegård
1 apr 2015 kl. 05.35 skrev Dongsheng Song : > In my testing, getenv() is very fast. > > *) unset PRINTF_EXPONENT_DIGITS > > preheat 1 times, then perform 100 times (use 4.6 seconds) > getenv cost: 4.6 us > > *) set PRINTF_EXPONENT_DIGITS=3 > preheat 1 times, then perform 100

Re: [Mingw-w64-public] printf speedup [PATCH]

2015-04-01 Thread Mattias Engdegård
> patch is ok. I am still a bit curious to learn about that high delay > caused by getenv (). It was a while since I dissected it, but I believe getenv takes a lock. This hurts multithreaded programs in particular. Even without a lock, getenv still needs to do a linear string search through the

Re: [Mingw-w64-public] [ANN] Website changes

2015-04-01 Thread Kai Tietz
Hi Adrien, yes, I think we should separate between pure toolchain and environment. Eg msys2, cygwin etc. are first hand environments, but of course each of them provides at least one toolchain package. So if we want to provide lists of additional packages available for a specific environment, we

Re: [Mingw-w64-public] printf speedup [PATCH]

2015-04-01 Thread Kai Tietz
Hi Mattias, patch is ok. I am still a bit curious to learn about that high delay caused by getenv (). Kai 2015-04-01 5:35 GMT+02:00 Dongsheng Song : > Hi Mattias, > > Could you share your micro benchmark data ? > > In my testing, getenv() is very fast. > > *) unset PRINTF_EXPONENT_DIGITS > > pr

Re: [Mingw-w64-public] [ANN] Website changes

2015-04-01 Thread Adrien Nader
(catching up with my mails LIFO-style, the best way to cause huge delays) On Wed, Mar 25, 2015, Ruben Van Boxem wrote: > 2015-03-24 21:20 GMT+01:00 Adrien Nader : > > > Hi, > > > > On Tue, Mar 24, 2015, David Macek wrote: > > > On 20. 3. 2015 22:51, Adrien Nader wrote: > > > > Hi, > > > > > > > >