On 15.10.2012 00:28, JonY wrote: > On 10/15/2012 05:05, Peter Kümmel wrote: >> I have an application which allocates lot of memory >> and on Windows XP the mingw build (rubenvb 4.7.2) >> is much worse than a msvc2010 build. >> > > Have you tried finding out which part of the application is taking up > the memory? > >> I assume this has to do with the C runtime library >> used by mingw which is from 1998 (Visual Studio 6), >> when GBs were only found on hard disks. >> > > Why would you think this?
I haven't isolated it but in principle it looks like this: ptr1 = malloc(1MB) ptr2 = malloc(1GB) realloc(ptr1, 50MB) On XP realloc succeeds for the msvc2010 build but not for the mingw build (rubenvb 4.7.2). > >> Is it possible to use a newer C runtime library for mingw? >> > > Sure, there are a few specs file mods for GCC about, you can search > mingw-users from the mingw.org mailing list for details. > > Do note however that mingw* is very much built around MSVCRT.DLL, so you > may encounter some bugs if you switch from the default. You may need to > rebuild GCC and all your libraries. Sounds very unstable. > > > > > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > > > > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
