Skip to content

嵌入式开发的那些坑

刚开始没多少,目前只总结到以下坑:

  1. CPU 速度,在 LAN 下载的情况下,你讲到缓冲区的速度有可能不够下载速度快。我被坑时下载速度超过 10M/s
  2. int64_t 类型强转,像把网络流强转成 int64_t 时(如:int64_t x = *((int64_t*)(buf[pos]));),ARM CPU 下可能引起崩溃!后来换成 memcpy 才正常。

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax