Messages in this thread | | | From | Ingo Oeser <> | Subject | Re: [2.6 patch] add a config option for -Os compilation | Date | Sun, 19 Oct 2003 15:56:56 +0200 |
| |
Hi all,
On Saturday 18 October 2003 21:19, Andi Kleen wrote: > Best would be actually a mix of both - setting it case by case. > That's already done in specific cases, e.g. ACPI is always compiled > with -Os. This could be done for other files which are clearly > slow path too.
If there is is guarantee fro the GCC Steering Comitee, that there will never be any ABI changes generated from the differences there (like structure padding on/off).
Maybe there should be sth. in the build system for that, which is called $(call optimize_for_speed, $target) and $(call optimize_for_size,$target) which then can be added on a per file basis and per directory tree, where it really matters and letting it to the default otherwise.
That way we can tune gradually and remove GCC options.
Simple implementation today:
optimize_for_speed := CFLAGS_$1 += -O3 optimize_for_size := CFLAGS_$1 += -Os
Sam: What do you think?
Regards
Ingo Oeser
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |