You are not logged in.

#1 2021-10-01 16:26:35

x3oo
Member
Registered: 2012-05-01
Posts: 8

PGO, LTO and BOLT optimizations

I don't know much about compiling. I successfully use pacaur and set my compiler flags. I came across pgo,lto and bolt the other day and was wondering if there is a way to implement lto, pgo and/or bolt somewhat comfortably.

Maybe if its cumbersome, it would be worth it to compile chromium/firefox and the kernel with those cache optimizers.

Offline

#2 2021-10-01 23:15:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,059
Website

Re: PGO, LTO and BOLT optimizations

makepkg enables LTO by putting this in the PKGBUILD:

options=('lto')

Offline

#3 2021-10-01 23:30:30

loqs
Member
Registered: 2014-03-06
Posts: 13,964

Re: PGO, LTO and BOLT optimizations

I thought chromium and firefox were already built with LTO and PGO?  The kernel supports LTO but only if you build it with clang.
Edit:
Do be careful when setting such options through compiler flags see for example https://bbs.archlinux.org/viewtopic.php?id=269172

Last edited by loqs (2021-10-01 23:36:45)

Offline

Board footer

Powered by FluxBB