PSV功能疑惑
|
||||
---|---|---|---|---|
初級會員
|
看过PSV的介绍后,我有些疑问。
1 PSV功能是否只是在用组合语言写程序时候会方便一些(不用查表指令了。)如果在C语言里面PSV 还有价值吗? 2 PSV功能跟查表指令相比有哪些优势? 3 在C下面如何启动PSV的功能? 我测试发现如果把程序写成 const unsigned char __attribute__((space(auto_psv))) table[]={"hello world"}; unsigned char tempreg; const unsigned char *str; 这样可以使用 指针的方式给 tempreg 赋值。 如果改成((space(psv)))这个参数,我发现指针地址没有问题但是通过指针方式已经无法把table 里面的数据再送跟tempreg了。 我看参考手册上说,使用psv 这个参数后就不能在使用普通C的方式来读取表格数据了。 这两个参数最大不同在什么方面?如果我要用psv的参数定义表格后该如何在C下读出?
發表於: 2006/4/11 7:15
|
|||
|