Arranging for -Os to imply -mpreferred-stack-boundary=2 on x86
Bernd Schmidt
bernds@redhat.com
Tue Oct 23 05:35:00 GMT 2001
On Tue, 23 Oct 2001, Jan Hubicka wrote:
> > One of our customers complained about the additional code generated to
> > maintain the stack aligned to 16-byte boundaries, and suggested us to
> > default to the minimum alignment when optimizing for code size. This
>
> Problem of this sollution is combining -Os modules with -O2. It makes sense
> to compile internal loop by -O2/-O3 and rest with -Os. I am doing that in
> XaoS zoomer to avoid bloat from user interface and it works well.
Then use -Os -mpreferred-stack-boundary=3.
Bernd
More information about the Gcc-patches
mailing list