Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
資深會員
|
參考一下
Predefined symbols like __DATE__, __TIME__ in MPASM? http://forum.microchip.com/tm.aspx?m=360969
發表於: 2009/1/9 16:44
|
|||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
資深會員
|
哦~~~~~~
不好意思,小弟要的是組語...,看來是不能用了。
發表於: 2009/1/9 15:35
|
|||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
資深會員
|
typhoon大大
小弟才書學淺...Orz...,找不到你說修改的地方。
發表於: 2009/1/9 11:33
|
|||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
資深會員
|
在 makefile 裡面 all 的部分,強制執行某 script 去修改 *.h 的內容……應該可以用。
先說這方法我沒實際試過,所以如果成功的話,請記得通知一聲唷。
發表於: 2009/1/8 22:13
|
|||
The Answer to Life, the Universe, and Everything.
|
||||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
資深會員
|
請問組語也有辦法使用嗎?
發表於: 2009/1/8 21:15
|
|||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
資深會員
|
"不支援"是乎說不太過去.....不太合常理!!!
1. __DATA__, __TIME__ 是compiler當下才決定的值, 於執行時期而言是"常數"(定值). 2. MPLAB C compiler所在環境(windows OS)都有支援date,time 以下網頁,找到資料,希望有用 http://forum.microchip.com/printable.aspx?m=240043 If you are using the MPLAB C18 compiler, here is what you can write: // Insert date & time at program location 0xF000 #pragma romdata some_known_location = 0xF000 const rom char CDATE[] = {__DATE__}; const rom char CTIME[] = {__TIME__}; #pragma romdata
發表於: 2009/1/8 20:10
|
|||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
版主
|
C30 是 ANSI C 的基本支援,無法像 PC 的 compiler 有那麼多的支援。
查了一下 C30 User's Guide 有關_DATE_的說明 : What are the definitions for __ DATE __ and __ TIME __ respectively, when the date and time of translation are not available? (ISO 6.8.8) Not applicable. The compiler is not supported in environments where these functions are not available.
發表於: 2009/1/8 11:05
|
|||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
中級會員
|
哇~ 好像是不錯的建議 (舉大姆指)
發表於: 2009/1/8 9:58
|
|||
|
Re: 如何才可以實現自動加入 build number?
|
||||
---|---|---|---|---|
資深會員
|
考慮用__DATE__跟__TIME__如何!!
發表於: 2009/1/7 16:47
|
|||
|