search for: __ram

Displaying 2 results from an estimated 2 matches for "__ram".

Did you mean: __ra
2005 Aug 31
2
[LLVMdev] Anyone is building a DSP-C frontend?
...m. usually constants are preferred to be put in the ROM, while the global vars in SRAM. however, sometimes the dsp programmer wants to explicitly specify where the data is. for example, to put constant in RAM. for some strange reasons like cost and access time. int __rom x = 0; // const in ROM int __ram y = 1; // const in RAM -- Tzu-Chien Chiu, 3D Graphics Hardware Architect <URL:http://www.csie.nctu.edu.tw/~jwchiu>
2005 Aug 31
0
[LLVMdev] Anyone is building a DSP-C frontend?
...to > be put in the ROM, while the global vars in SRAM. however, sometimes > the dsp programmer wants to explicitly specify where the data is. for > example, to put constant in RAM. for some strange reasons like cost > and access time. > > int __rom x = 0; // const in ROM > int __ram y = 1; // const in RAM There are two pieces to this. Again, this shouldn't be a type qualifier. Instead it is an attribute on: globals, loads, and stores. An example of this is the volatile flag, which in C goes on the declaration but in llvm it goes on the access. Here you need to speci...