Hardware 版 (精华区)
发信人: edmcgy (达达尼), 信区: Hardware
标 题: DSP(Data Signal Processor)的应用(10)
发信站: 紫 丁 香 (Thu Apr 23 15:30:01 1998), 转信
Workaround/Solution
WORKAROUND/SOLUTION
===================
Assign the expression to temporary or change the definition
of the structure to declare that member of the structure first.
Title: I am using register AR7 as global register variable and I use -rAR7..
Bug #
Tool
Version
Fixed?
SDSsq02121
Compiler
V6.60
Fixed, will appear in next release.
Bug Description
BUG DESCRIPTION
===============
Using the shell command line option "-rAR6" or "-rAR7" to simply inform the
compiler not to use those registers works fine. However, actually declaring
a global register variable
register int AR7; /* declared at file level scope */
does not work. The compiler incorrectly saves/restores the register in
every function in the file. It should not be modifying the register except
when the user makes a reference to it.
--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: edmcgy.hit.edu.c]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.153毫秒