2012/11/12 Václav Šmilauer <[email protected]>
>
> > I am using your toolchains (thanks for them :-) ), the 64bit flavor. Are
> > those messages indicative of files being too big, or is it rather large
> > number of sections (lots of templates?) the culprit?
> >
> >
> c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/as.exe:
> > C:\Users\eudoxos\AppData\Roaming/.ccache/tmp.hash.unknown.3588.o: too
> > many sections (37348)
> > C:\Users\eudoxos\AppData\Local\Temp\ccgNnnZd.s: Assembler messages:
> > C:\Users\eudoxos\AppData\Local\Temp\ccgNnnZd.s: Fatal error: can't write
> > C:\Users\eudoxos\AppData\Roaming/.ccache/tmp.hash.unknown.3588.o: File
> > too big
> >
> c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/as.exe:
> > C:\Users\eudoxos\AppData\Roaming/.ccache/tmp.hash.unknown.3588.o: too
> > many sections (37348)
> > C:\Users\eudoxos\AppData\Local\Temp\ccgNnnZd.s: Fatal error: can't close
> > C:\Users\eudoxos\AppData\Roaming/.ccache/tmp.hash.unknown.3588.o: File
> > too big
> Can I ask in this context for suggestions of reducing the number of
> sections in templated code?
>
> I am currenly only able to compile my code with -g0 -Os. I don't care so
> much about missing debugging information, but -O2 is a must for me, but
> it triggers the error above. Can I get some hints regarding compiler
> flags? Should I disable inlining, for instance?
>
It it possible to split the object file? Just move some functions to their
own implementation file, and link those together. There might be less
automagical inlining, but overall difference in performance should be
negligible, and a single object's size should decrease significantly. The
linker should be able to cope with GBs of total object size if it's 64-bit
and the final output file isn't too big.
It seems you are running into a binutils "as" implementation limit.
Ruben
>
> Cheers, Vaclav
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public