摘要: usage 在使用 gdb debug 程式前, compile 需要加 g 產生 debug information, g3 為最多 debug information 以及 加 O0 程式不要優化 Do not print the introductory and copyright messa 阅读全文
posted @ 2017-05-04 19:15 wangchangruei 阅读(579) 评论(0) 推荐(0)
摘要: conclusion 愈前面的變數,出現在 memory 愈低的 memory address 愈後面的變數,出現在 memory 愈高的 memory address 符合 heap 由 低 address 往 高 address 的方向 reference http://wp.mlab.tw/? 阅读全文
posted @ 2017-05-04 13:56 wangchangruei 阅读(273) 评论(0) 推荐(0)
摘要: 查看 目前目錄使用的空間大小 h, human readable 查看 目前及下一屠的目錄 使用的空間大小 阅读全文
posted @ 2017-04-30 17:37 wangchangruei 阅读(251) 评论(0) 推荐(0)
摘要: reference : "ADC 階數的計算" 阅读全文
posted @ 2017-04-27 14:17 wangchangruei 阅读(240) 评论(0) 推荐(0)
摘要: 修改 code 後, 想使用 beyond compare 比對 修改前後的 code (有一包未修改的 code), 若 code 很大, 全部比完,需要花很多時間, Command 此時可以使用 git 與 sed 的命令,濾出修改過的檔案位置, copy 濾出的結果 至 beyond comp 阅读全文
posted @ 2017-04-27 12:03 wangchangruei 阅读(526) 评论(0) 推荐(0)
摘要: 1. Recommended extra packages for Trusty 14.04 2. Download Docker Go to https://apt.dockerproject.org/repo/pool/main/d/docker-engine/ and download the 阅读全文
posted @ 2017-04-24 15:55 wangchangruei 阅读(745) 评论(0) 推荐(0)
摘要: This is for Devicetree Specification Release 0.1 Interrupt Mapping Example p19 在講解前,先帶進一些 PCI 的基礎觀念 pci device 的 其中一種 type address 由下方組成 為什麼 硬體要連成這樣子呢 阅读全文
posted @ 2017-04-24 11:42 wangchangruei 阅读(1840) 评论(0) 推荐(0)
摘要: ex : Precondition : R_CHARGER_1 是 int type R_CHARGER_2 是 int type val 是 int type val = (((R_CHARGER_1+R_CHARGER_2)\ 100\ val)/R_CHARGER_2)/100; 為什麼要乘1 阅读全文
posted @ 2017-04-21 17:23 wangchangruei 阅读(287) 评论(0) 推荐(0)
摘要: GSMArena battery life test where a=b=c=1; d=21; e=24; call : 3G call 測到關機 Browsing : browsing 測到關機 VideoPlay : 測到 10% standby : 手機進入 standby mode 24小時 阅读全文
posted @ 2017-04-20 20:17 wangchangruei 阅读(503) 评论(0) 推荐(0)
摘要: solution open virtualbox file preference input below picture 按下快速鍵,即發生作用。 原先的 Host Key 是 右邊的 ctrl key,將它改為 None,就不會影響 快速鍵的作用, 且而需 enable Auto Capture 阅读全文
posted @ 2017-04-09 12:58 wangchangruei 阅读(258) 评论(0) 推荐(0)