Altera_Forum
Honored Contributor
8 years agoHow to force use of registers for local variable?
Hi,
I have a local array which is currently stored in RAM. It's 216 bytes in size (i.e. larger than 64 bytes). The operations on the data stored in this array are very simple and I would like to force the compiler to implement it in registers rather than RAM to see if this gives me a speedup. How can I do this? Is there an attribute to use when I declare a local variable? Thanks, Hanno