benben wrote:
> <somebody else>
>> Also, and to be sure I understood you right, Static, Stack and Dynamic
>> Memory are part of the RAM, right? So there's no chance of trying to
>> write to L1 or L2 cache without Assembler?
>>
>
> They are all "memory", which means Primary Memory, which means memory
> that the CPU can directly access and operate on. Whether it includes
> anything else is up to the context.
>
> Yes you need an assembler to do low-level coding like writing to CPU
> cache and I/O.
Can you write directly to cache? Hardcore
That you need assembler to write to write to IO is surely misleading.
I've used C to access (memory mapped) IO directly on at least 3
microcontrollers (8051, C167, TriCore).
You would need an assembler to write directly to specific CPU registers,
but that doesn't stop the C compiler taking your code and organising
what should go in what specific register.
Ben Pope
--
I'm not just a number. To many, I'm known as a string...