No description
f9681240cf
GCC supports the use of pipes for intermediate compilation steps (e.g. passing the generated assembly code to the assembler) as a replacement for temporary files. This bypasses VFS and other layers which can introduce substantial amounts of overhead and instead redirects data directly between processes. The final product and generated code are unaffected. Memory usage while compiling is slightly higher. Tests showed a substantial reduction in build time when using GCC to compile an x86 4.19 kernel: Using temporary files in tmpfs: 2m41s Using pipes: 2m36s Similar benefits were observed with an Android arm64 4.9 kernel: Using tmpfs: 5m34s Using pipes: 4m33s Enable the feature when possible (i.e. when the compiler supports it) to speed up builds at effectively no cost for many setups, particularly those with weaker CPUs. Test: kernel compiles and boots Signed-off-by: Danny Lin <danny@kdrag0n.dev> Signed-off-by: Carlos Jimenez (JavaShin-X) <javashin1986@gmail.com> Change-Id: Id7860154edd5547dc686e1320a25892e8c4906a6 Signed-off-by: starlight5234 <starlight5234@protonmail.ch> |
||
---|---|---|
android | ||
arch | ||
block | ||
certs | ||
crypto | ||
Documentation | ||
drivers | ||
firmware | ||
fs | ||
include | ||
init | ||
ipc | ||
kernel | ||
lib | ||
LICENSES | ||
mm | ||
net | ||
samples | ||
scripts | ||
security | ||
sound | ||
techpack | ||
tools | ||
usr | ||
virt | ||
.clang-format | ||
.cocciconfig | ||
.get_maintainer.ignore | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
Android.bp | ||
AndroidKernel.mk | ||
build.config.aarch64 | ||
build.config.allmodconfig | ||
build.config.allmodconfig.aarch64 | ||
build.config.allmodconfig.arm | ||
build.config.allmodconfig.x86_64 | ||
build.config.arm | ||
build.config.common | ||
build.config.gki | ||
build.config.gki-debug.aarch64 | ||
build.config.gki-debug.x86_64 | ||
build.config.gki.aarch64 | ||
build.config.gki.x86_64 | ||
build.config.gki_kasan | ||
build.config.gki_kasan.aarch64 | ||
build.config.gki_kasan.x86_64 | ||
build.config.goldfish.arm | ||
build.config.goldfish.arm64 | ||
build.config.goldfish.mips | ||
build.config.goldfish.mips64 | ||
build.config.goldfish.x86 | ||
build.config.goldfish.x86_64 | ||
build.config.x86_64 | ||
COPYING | ||
CREDITS | ||
gen_headers_arm.bp | ||
gen_headers_arm64.bp | ||
Kbuild | ||
Kconfig | ||
kernel_headers.py | ||
MAINTAINERS | ||
Makefile | ||
README | ||
verity_dev_keys.x509 |
Linux kernel ============ There are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF. Please read Documentation/admin-guide/README.rst first. In order to build the documentation, use ``make htmldocs`` or ``make pdfdocs``. The formatted documentation can also be read online at: https://www.kernel.org/doc/html/latest/ There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation. See Documentation/00-INDEX for a list of what is contained in each file. Please read the Documentation/process/changes.rst file, as it contains the requirements for building and running the kernel, and information about the problems which may result by upgrading your kernel.