用全域變數來做引數傳遞,是否能解省RAM的使用空間和防止堆疊暴掉
|
||||
---|---|---|---|---|
資深會員
|
請問版大:
我發覺要用C語言寫單晶片,最好用全域變數來做引數傳遞,不然很容易overstack的樣子。因為用標準的引數傳遞的話,有時候呼叫太多次函數,在編譯時會出現下列錯誤訊息: Advisory[1207] : some of the command line options you are using are now obsolete Advisory[1208] : use --help option or refer to the user manual for option details 不知道是否是堆疊不夠用引起的錯誤,謝謝。
發表於: 2008/6/10 14:17
|
|||
|