代码拉取完成,页面将自动刷新
LLVM_PATH = /home/pfalcon/projects-3rdparty/llvm-3.0.src/Debug/bin
OPT = $(LLVM_PATH)/opt
LLC = $(LLVM_PATH)/llc
CROSS_COMPILE = msp430-
MCU = msp430g2553
TARGET_FLAGS = -mmcu=$(MCU)
# Can select specific device if multiple connected at the same time,
# format "-s <device_serial>" or "-U <usb_port_id>", see mspdebug --help
DEVICE_SELECT ?=
CLANGFLAGS = -ccc-host-triple msp430 -D__MSP430G2553__ -I/usr/msp430/include -m32 -emit-llvm
OPTFLAGS = -std-compile-opts -strip-debug -disable-simplify-libcalls
LLCFLAGS = -march=msp430
OVERRIDE_RULES = 1
$(TARGETDIR)/%.o: %.cpp
mkdir -p $(TARGETDIR)
clang $(ALL_CXXFLAGS) $(CLANGFLAGS) -S -c $^ -o $@.ll
$(OPT) $(OPTFLAGS) -S $@.ll -f -o $@.opt.ll
$(LLC) $(LLCFLAGS) $@.opt.ll -o $@.opt.s_
awk '/.globl\tmain/ { print "\t.section\t.init9,\"ax\",@progbits"; } \
{ print }' $@.opt.s_ > $@.opt.s
msp430-as $@.opt.s -o $@
deploy-%: $(TARGETDIR)/%
mspdebug $(DEVICE_SELECT) rf2500 "prog $^"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。