1 Star 0 Fork 1

orange1710/EleOS

forked from Calon/EleOS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
analysis.sh 626 Bytes
一键复制 编辑 原始数据 按行查看 历史
Calon 提交于 2023-05-07 21:29 +08:00 . add the script for observing source code files
#! /bin/bash
# 针对单个源代码文件进行仅汇编或仅编译
# $1 :如果为 -s 表示源代码文件仅汇编;如果为 -o 表示源代码文件仅汇编,但不链接。
# $2 :源代码文件的文件路径
CFLAGS="-I ./src/include -pipe -c -fno-builtin -m32 -fno-stack-protector \
-nostdinc -fno-pic -gdwarf-2 -Wall -DKBUILD_BASENAME=i386 -std=gnu99"
./comp -a
FILE_ROUTINE=$2
if test $1 = "-s"; then
gcc ${CFLAGS} -S ${FILE_ROUTINE} -o test.s
elif test $1 = "-o"; then
gcc ${CFLAGS} -c ${FILE_ROUTINE} -o test.o
readelf -e test.o
else
echo "I can't get you."
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/orange1710/EleOS.git
git@gitee.com:orange1710/EleOS.git
orange1710
EleOS
EleOS
master

搜索帮助