Re: [patch 4/8] Immediate Value - Add kconfig menus

Mathieu Desnoyers
2007-07-14T15:27:46Z

* Alexey Dobriyan (adobriyan@gmail.com) wrote:
> On Fri, Jul 13, 2007 at 09:24:43PM -0400, Mathieu Desnoyers wrote:
> > Immediate values provide a way to use dynamic code patching to update variables
> > sitting within the instruction stream. It saves caches lines normally used by
> > static read mostly variables.
>
> > kernel/Kconfig.immediate | 11 +++++++++++
>
> NAK, if this immediate stuff is so super-cool¹ it should be default on.
>
> ¹ it isn't
>

Hi Alexey,

On embedded systems, the tradeoff is not the same. The immediate values
trade a little bit of system memory (to keep the pointers to the
variable and instruction as well as the size of the variable, only used
when the variable is updated) in order to remove cache line hot paths.

Also, embedded systems with physically read-only memory clearly does not
want to enable this.

Mathieu