Re: [心得] 如何強化嵌入式(系統)軟體可靠度
※ 引述《JohnLinq (林約翰)》之銘言:
: : 推 sunneo:在效能允許下 我可能會把這類的工作交給OS/多層的ISR來檢查 04/12
: : → sunneo:現在晶片的效能蠻好的 而且有上述要求 配備應不會差到哪 04/12
: : → sunneo:除非產品本身相當差 卻又有以上要求 才會想要加入那些碼 04/12
: : → tinlans:不要傻了,對 compiler 而言那叫 unreachable code, 04/12
: : → tinlans:最佳化開下去大都直接 bye bye。 04/12
: : → tinlans:這種東西靠硬體自我檢測和更正還比較有意義。 04/12
: 如果不是很麻煩的話,能否請諸位賢達移駕到
: http://www.keil.com/forum/docs/thread14537.asp
: 一起作個討論交流呢?一起來轉轉晃晃嘛。 XD
Per Westermark 針對 sunneo 和 tinlans 的意見,作了一些回應。
(可能我的翻譯和轉述不是那麼的準確,所以........)
Author
Per Westermark
Posted
12-Apr-2009 23:26
Toolset
None
New! RE: A Traditional Chinese Introduction
Per Westermark
If you have a processor with MMU, then you can set up guard pages on either
side of arrays, and have the processor generate an exception if your code
tries to access any of these pages.
This is similar to how most full-size operating systems (not RTOS)
automatically grows stacks.
But a very significant percentage of embedded equipment dont have the luxury
of having an MMU.
The ability of the compiler to [下略]
在以下URL的最底部就可以看到了,click "Reply" button可以回應。
http://www.keil.com/forum/docs/thread14537.asp
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.221.140.178
※ 編輯: JohnLinq 來自: 61.221.140.178 (04/13 15:53)
推
04/13 17:06, , 1F
04/13 17:06, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):