Skip to main content

All Questions

Tagged with
-3 votes
1 answer
270 views

Why don't BSD kernels use likely() unlike Linux does?

As pointed out in an answer, there's some use of similar hints to compiler in say, FreeBSD and OpenBSD, but those hints coverage of Linux kernel code is a few magnitudes higher. It might make sense to ...
poige's user avatar
  • 6,280
2 votes
1 answer
1k views

Can I compile Linux kernel with -Ofast?

I want to know if compiling the Linux kernel with -Ofast is: Worth it. Supported (what level of optimization do the kernel writers take into account?) Secure. The question arised because ...
Agustín Nieto García's user avatar
20 votes
1 answer
9k views

Why can the kernel not use SSE/AVX registers and instructions?

This post from StackOverflow has this, In some environments there there is a restriction on certain instructions or using certain registers. For example, in the Linux kernel, use of SSE/AVX or FP ...
Evan Carroll's user avatar
  • 31.8k
2 votes
0 answers
332 views

Is there a linux interface for arm cp15 register access?

For performance optizimization I should be able to switch bits in ACTLR register of the cp15 unit. I've done stuff like this before in bare metal projects, but from linux user space I can't execute ...
Philippos's user avatar
  • 13.5k