This is the mail archive of the gcc@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]

(-Os versus -O2 relation) Was: case where gcc generates bigger binaries than MSVC


Hi 
Disabling all code alignments for Os optimizations of for a while on my TODO
list.  Only open question is whether it is better to do that in backend
on generally (there are probably backends requiring some instruction alignment,
so backend side seems to be better for me).

I am not sure about DATA_ALIGNMENT. The decision IMO that needs to be made
is whether we want -O2 and -Os code to be combined.
At XaoS I compile main engine with -O2 and user interface with -Os.
In case the static storage comming from -Os will be missaligned, we will
get penalty on -O2 code.

Of course it makes prefect sense -Os mean "optimize for size as much as possible",
but then it also may imply -mpreferred-stack-boundary=2.

Honya

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