Re: 記憶體問題
|
||||
---|---|---|---|---|
新會員
|
extern 我有用過了.還是不行耶~
會出現錯誤
發表於: 2007/7/2 10:34
|
|||
|
Re: 記憶體問題
|
||||
---|---|---|---|---|
資深會員
|
有個假指令可以把變數宣告成共用讓別支程式也可以使用此變數,當然要配合另一個假指令來宣告使用外部的變數....
好像是extern 另一個我忘了...抱歉
發表於: 2007/6/30 1:13
|
|||
|
Re: 記憶體問題
|
||||
---|---|---|---|---|
新會員
|
我現在的做法是將上面那一段宣告到一個start.h檔.
然後在所有C檔上include start.h 但是如此一來他的大小就會改變 請問有其他的方法嗎?
發表於: 2007/6/28 11:18
|
|||
|
記憶體問題
|
||||
---|---|---|---|---|
新會員
|
我現在程式裡面需要用到下列的記憶體空間
#pragma udata UPANALOG static unsigned char up_analog[512]; #pragma udata 但現在遇到一個問題是我在其中一個.C檔裡面宣告後 要在其它的.C檔裡面用到,請問一下要怎麼用丫 麻煩各位前輩幫我一下~ 謝謝
發表於: 2007/6/26 12:01
|
|||
|