Re: [RFC] Observations on x86 process.c
From: cutaway
Date: Mon Jun 13 2005 - 07:51:59 EST
They are free to, but I've rarely(never?) seen GCC actually do it with the
default build setup. Don't trust me - look at a generated ASM listing and
convince yourself what I'm saying is true. GCC does a lot of massive
reordering within functions though.
Throw a "CFLAGS += -Wa,-al=$<.lst" at the top of the Makefile. That'll
generate a "process.c.lst" assembler listing file.
IAC, it would be harmless if one did, and goodness if one doesn't. That
sounds like a win to me :)
Tony
----- Original Message -----
From: "Jan Engelhardt" <jengelh@xxxxxxxxxxxxxxx>
>
> C compilers are free to reorder functions (are they?), especially GCC when
it
> is passed -funit-at-a-time (which currently is not in CFLAGS).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/