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" <[email protected]>
>
> 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]