|
|
Subscribe / Log in / New account

Shrinking the kernel with link-time optimization

Shrinking the kernel with link-time optimization

Posted Feb 25, 2019 20:05 UTC (Mon) by praveenv98 (guest, #116175)
Parent article: Shrinking the kernel with link-time optimization

Hi Great Article!

In this passage :

"When CONFIG_HIGHMEM is not defined, is_highmem_idx() (and PageHighMem() derived from it) return zero unconditionally. Any code within functions that follows the "if (PageHighMem(page))" pattern will be automatically optimized away as dead code.

But this works only because is_highmem_idx() is marked static; ".

Why this works only for static functions ? Static keyword implies only about the internal linkage right?

Thanks


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds