Propeller architecture question.
RichardF
Posts: 168
When a cog runs a method that has declared local variables,·is the variable space for the local variables in main RAM or cog RAM? If in main RAM are the variables part of the designated stack space? If a method being run by a cog needs to make an address call how can you specify main RAM·versus cog RAM? Working hard to really learn the Propeller architecture so I can start learning assembly for it.
Thanks,
Richard
Post Edited (RichardF) : 6/14/2007 6:39:19 PM GMT
Thanks,
Richard
Post Edited (RichardF) : 6/14/2007 6:39:19 PM GMT
Comments
COG RAM is full of the Spin interpreter and whatever tokens it's currently processing.
(The rest of the program or method is stored in HUB RAM)
And all Address calls in Spin also uses HUB RAM.
In Assembly, though, all references are for COG RAM unless you use the special commands designed for HUB access.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
Richard
In assembly it may be useful to think of HUB RAM as an I/O device with access using special instructions.· In fact, most of the HUB functions are accessed with special instructions other than the variables in upper COG memory (like CTRA/B, INA/B, OUTA/B, DIRA/B, system clock, etc.