Re: cache clearing from keeping code and data in the same segment
Re: cache clearing from keeping code and data in the same segment
- Subject: Re: cache clearing from keeping code and data in the same segment
- From: Jonas Maebe <email@hidden>
- Date: Mon, 19 Jan 2009 13:47:25 +0100
On 19 Jan 2009, at 13:34, Joel Reymont wrote:
On Jan 19, 2009, at 12:25 PM, Jonas Maebe wrote:
Keeping code and read/write data close to each other (putting them
in the same segment may qualify) may result in the icache getting
invalidated on data writes (to deal with self-modifying code),
[...] Such flushing, if any, would performed by the cpu though, the
OS has no influence over that.
So you are saying that this is a function of the CPU as opposed to
the OSX itself?
Yes.
I am dealing with self-modifying code (Forth), although I'm willing
to trade certain things for performance.
Self-modifying code is in many cases one of the most effective ways to
kill performance on modern cpus.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden