Chapter 12:進一步增強核心 === :::info 這是讀書筆記 ![679544](https://hackmd.io/_uploads/HJB-ZFKV-l.jpg =30%x) 作者:鄭鋼 出版社:佳魁資訊股份有限公司 出版日期:2017/05/31 ::: >[time=2025-07-25] --- # System Call: getpid ## Source Code https://github.com/yifengyou/os-elephant/tree/master/code/c12/a ## Result ![截圖 2025-07-23 晚上8.19.53](https://hackmd.io/_uploads/S1Bqm8RLee.png) # printf ## Source Code https://github.com/yifengyou/os-elephant/tree/master/code/c12/c ## Result ![截圖 2025-07-24 凌晨3.22.12](https://hackmd.io/_uploads/HkGFUnRIlg.png) ## Troubleshooting ![截圖 2025-07-24 凌晨3.23.51](https://hackmd.io/_uploads/Hy_gwhR8xl.png) print.S 需要修改成這樣: ![截圖 2025-07-24 凌晨3.25.11](https://hackmd.io/_uploads/r1j4P3AUxg.png) 修改靈感來自這篇文章~ https://github.com/Eric217/OS_EXP/issues/1 # malloc ## Source Code https://github.com/yifengyou/os-elephant/tree/master/code/c12/h ## Result ![截圖 2025-07-25 上午10.40.13](https://hackmd.io/_uploads/S1Aj0PxDle.png)