- Sep 8, 2004
- 1,495
- 0
- 0
OK i am just finishing up digital logic and the latest thing we have learn and hard to do was to hand assembly programs from a simple CPU that closely resembles the Motorola 68HC12 ( as we will be using that microcontroller this summer for our micro p class).
For what I can assume is that a programmer in High Level language doesn?t have access to the cache like we did when hand assembling but then I thought what was the point for some CPUs having more cache then the others and why only some application seen speed boosts from it?
My first thought was that these applications actually had assembly code in them to take advantage of this but I gave up this idea pretty quick.
My other thought was that maybe they had specific code where their complier seen ways to speed up code if ran on a certain processor with more cache.. But wouldn't that limit it and make the code run a lot slower on CPU switch less cache...
So anyone with an answer would you mind ending my guessing here??
Thanks and now i need to get back studying for my exam in Digital Logic
For what I can assume is that a programmer in High Level language doesn?t have access to the cache like we did when hand assembling but then I thought what was the point for some CPUs having more cache then the others and why only some application seen speed boosts from it?
My first thought was that these applications actually had assembly code in them to take advantage of this but I gave up this idea pretty quick.
My other thought was that maybe they had specific code where their complier seen ways to speed up code if ran on a certain processor with more cache.. But wouldn't that limit it and make the code run a lot slower on CPU switch less cache...
So anyone with an answer would you mind ending my guessing here??
Thanks and now i need to get back studying for my exam in Digital Logic