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: Joel Reymont <email@hidden>
- Date: Mon, 19 Jan 2009 12:34:57 +0000
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?
I am dealing with self-modifying code (Forth), although I'm willing to
trade certain things for performance.
---
http://twitter.com/wagerlabs
_______________________________________________
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