?? buildtoolchain-step10-helloworld
字號(hào):
#!/bin/bash# buildtoolchain-step10-helloworld v1.2 08/13/02# www.embeddedlinuxinterfacing.com## The original location of this script is# http://www.embeddedlinuxinterfacing.com/chapters/03/buildtoolchain## Copyright (C) 2001 by Craig Hollabaugh# See buildtoolchain script for General Public License statementif [ ! $BUILDTOOLCHAINENV ]then. ./buildtoolchain-environment $1fi## Step 10 - Checking Tool Chain Build by Cross-Compiling Helloworld#date "+%x %X - Started: $0"date "+%x %X - Started: $0" >> $SRCFILELOC/output-build-statusecho creating helloworld.ccd $BUILDLOCrm -rf helloworld.*cat > helloworld.c << ENDOFINPUT#include <stdio.h>int main(void){ int i; for (i = 1; i < 10; i++) { printf("Hello world %d times!\n",i); }}ENDOFINPUT$TARGET-gcc -g -o helloworld-$TARGET helloworld.cfile helloworld-$TARGETdate "+%x %X - Completed: $0"date "+%x %X - Completed: $0" >> $SRCFILELOC/output-build-status#beepecho -e "\07"
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -