[patch][rfc] Enabling more optimizations with -ON
Rafael Espíndola
rafael.espindola@gmail.com
Wed Nov 19 00:01:00 GMT 2014
More information about the Binutils mailing list
Wed Nov 19 00:01:00 GMT 2014
- Previous message (by thread): [patch][rfc] Enabling more optimizations with -ON
- Next message (by thread): [patch][rfc] Enabling more optimizations with -ON
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ping 2 On 10 November 2014 09:19, Rafael Espíndola <rafael.espindola@gmail.com> wrote: > ping > > On 3 November 2014 11:39, Rafael Espíndola <rafael.espindola@gmail.com> wrote: >> In compilers the -ON options enable various optimizations. Different >> compilers (and compiler versions) have different ones, but the option >> itself is commonly available and selects a somewhat corresponding >> level. >> >> In both bfd ld and gold very few optimizations are enabled with the >> -ON options. This means that users have to know which optimizations >> are available: >> >> ld ...-O3 --gc-sections --icf=safe.... >> >> If an optimization is added to one of them, a configure check has to >> be used to find if the program is being linked with gold or bfd (and >> which version). >> >> As a starting point, the attached patch changes gold to gc sections by >> default if given -O3 or higher. It can still be disabled with an >> explicit --no-gc-sections. >> >> Cheers, >> Rafael >> >> 2014-11-03 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> >> >> * options.cc (General_options::finalize): Set gc_sections by default >> if -O3 or higher is used.
- Previous message (by thread): [patch][rfc] Enabling more optimizations with -ON
- Next message (by thread): [patch][rfc] Enabling more optimizations with -ON
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list