作者JohnLinq (林约翰)
看板C_and_CPP
标题Re: [心得] 如何强化嵌入式(系统)软体可靠度
时间Mon Apr 13 15:52:47 2009
※ 引述《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)
1F:推 kvykn:(大拇哥) 04/13 17:06