[PATCH] D25766: [ELF] - Implemented --section-ordering-file option.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 24 03:12:10 PDT 2016


> Correction. I talked about this with Sriraman offline. He said that a mechanism to reorder sections is useful to reduce TLB misses because we could layout hot > functions close to each other. It doesn't have to be --section-ordering-file, but it seems that we need some mechanism to reorder sections even on all-SSD systems.


So my suggestions are next then:

1) We can also implement sorting of .text.unlikely.* .text.exit.* .text.startup.* .text.hot.* sections. That is how bfd/gold do.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gold/layout.cc;h=d14f27bddfcf48d1465e60cf0f6889c85ce5bb05;hb=HEAD#l1111
This feature is independent from --section-ordering-file generally.

2) Anyways we are still interested in some numbers, so I going to benchmark Firefox or Chromium to see them (just in case - I have both SSDs and HDD for testing).

George.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161024/94f0789c/attachment.html>


More information about the llvm-commits mailing list