GNU ld does it with the "-relax" flag.
> Even the "good" Digital compilers tended to nop out unnecessary
> instructions rather than remove them, causing more icache pressure on
> a CPU that was already famous for needing tons of icache ]
But you're absolutely right about the nopping -- removing the nops would
require debug info and EH info to be re-coded. The later being a matter
of correctness. This is a bit nastier than I ever cared to deal with.
r~
-
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/