objdump -s --section .comment /path/binary
2021年1月3日 星期日
2020年11月4日 星期三
[Programming] void(p);
- 今天 diff 兩個實作的程式碼, 某 function 的差異是多了一行
void(p);
其中 p 是 function 參數 - 這執行上完全沒有效果, 主要作用是避開有些 compiler 會有變數 unused 的 warning, 而 compiler 把 warning 也直接以 error 報錯時, 會 build error, 那可以用這方法避開.
2018年1月6日 星期六
[Toolchain] Portal
- build
- configure scripts
- configure --prefix -android
- configure --prefix -gnu-eabi
- Compiler
- naming convention
- arch-vendor(or CPU)-kernel-system
- e.g. arm-cortex_a8-linux-gnueabi
- arch
- arm, mips, x86_64, ppc(power pc), ...etc.
- kernel
- linux, bare-metal, ...etc.
- system
- glibc, eglibc, uclibc
- oabi, eabi
- gnueabi (glibc+eabi)
- Binutilities
- Reference
2017年7月1日 星期六
[Raspberry Pi] toolchain
- Compiler
- compile option
-Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
訂閱:
文章 (Atom)