compare.sh
来自「linux下编译交叉工具链的工具源码」· Shell 代码 · 共 29 行
SH
29 行
#!/bin/sh# Example of how to compare toolchains built with and without a single patch# This was used to prove that gcc-3.3.2-arm-softfloat.patch did not cause# ppc750 toolchains to generate different binaries set -exTARBALLS_DIR=$HOME/downloadsexport TARBALLS_DIR GCC_LANGUAGES="c"export GCC_LANGUAGESRESULT_TOP=/opt/crosstool/xxvfpexport RESULT_TOPmkdir -p $RESULT_TOPcp contrib/gcc-3.3.2-arm-softfloat.patch patches/gcc-3.3.3eval `cat powerpc-750.dat gcc-3.3.3-glibc-2.3.2.dat` sh all.sh --notestRESULT_TOP=/opt/crosstool/novfpexport RESULT_TOPmkdir -p $RESULT_TOPrm -f patches/gcc-3.3.3/gcc-3.3.2-arm-softfloat.patcheval `cat powerpc-750.dat gcc-3.3.3-glibc-2.3.2.dat` sh all.sh --notest/opt/crosstool/xxvfp/powerpc-750-linux-gnu/gcc-3.3.3-glibc-2.3.2/bin/powerpc-750-linux-gnu-gcc -static struct-ret-1.c -o xxvfp.out/opt/crosstool/novfp/powerpc-750-linux-gnu/gcc-3.3.3-glibc-2.3.2/bin/powerpc-750-linux-gnu-gcc -static struct-ret-1.c -o novfp.outecho comparing binaries. Expect only to see \'no\' replaced by \'xx\', no other changes.cmp xxvfp.out novfp.out || echo try \'cmp -l xxvfp.out novfp.out\' to see where they differecho Finished
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?