⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcc.sh

📁 俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)的全部源代码。
💻 SH
字号:
#/bin/sh# Generate test result data for xstormy16 GAS testing.# It is intended to be run in the testsuite source directory.## Syntax: build.sh /path/to/build/gasif [ $# = 0 ] ; then  if [ ! -x ../gas/as-new ] ; then    echo "Usage: $0 [/path/to/gas/build]"  else    BUILD=`pwd`/../gas  fielse  BUILD=$1fiif [ ! -x $BUILD/as-new ] ; then  echo "$BUILD is not a gas build directory"  exit 1fi# Put results here, so we preserve the existing set for comparison.rm -rf tmpdirmkdir tmpdircd tmpdirfunction gentest {    rm -f a.out    $BUILD/as-new ${1}.s -o a.out    echo "#as:" >${1}.d    echo "#objdump: -dr" >>${1}.d    echo "#name: $1" >>${1}.d    $BUILD/../binutils/objdump -dr a.out | 	sed -e 's/(/\\(/g'             -e 's/)/\\)/g'             -e 's/\$/\\$/g'             -e 's/\[/\\\[/g'             -e 's/\]/\\\]/g'             -e 's/[+]/\\+/g'             -e 's/[.]/\\./g'             -e 's/[*]/\\*/g' | 	sed -e 's/^.*file format.*$/.*: +file format .*/' 	>>${1}.d    rm -f a.out}# Now come all the testcases.cat > gcc.s <<EOF	mov.w r0,#-1	mov.w r0,#0xFFFF	add r0,#some_external_symbolEOF# Finally, generate the .d file.gentest gcc

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -