Skip to content

Commit eeeb457

Browse files
author
meihao@ccy
committed
update docs/T113s3-Pro/part4/01-HelloWorld.md
1 parent 713d4f1 commit eeeb457

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/T113s3-Pro/part4/01-HelloWorld.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ Hello, world!
3737
我们要想给 ARM 板编译出 hello 程序,需要使用相应的交叉编译工具链。T113s3ProV1.3SdNand开发板的交叉编译工具是(实际路径不一定相同):
3838

3939
~~~bash
40-
/home/ubuntu/tina5sdk-bsp/out/toolchain/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc
40+
/home/ubuntu/tina5sdk-bsp/out/t113/evb1_auto/buildroot/buildroot/host/bin/arm-linux-gnueabi-gcc
4141
~~~
4242

4343
## 编译程序
4444

4545
编写代码完成后,可以使用上面提到的交叉编译工具来进行编译,
4646

4747
~~~bash
48-
/home/ubuntu/tina5sdk-bsp/out/toolchain/gcc-linaro-5.3.1-2016.05-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc helloworld.c -o helloworld
48+
/home/ubuntu/tina5sdk-bsp/out/t113/evb1_auto/buildroot/buildroot/host/bin/arm-linux-gnueabi-gcc helloworld.c -o helloworld
4949
~~~
5050

5151
执行指令后,会出现一个可执行文件,就是应用程序 `helloworld`,可以看到helloworld程序的文件类型如下,
5252

5353
~~~bash
5454
ubuntu@ubuntu1804:~/C-Test/Hello$ file helloworld
55-
helloworld: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=c1991d886f540551747a71e0f3553d9750ca3953, with debug_info, not stripped
55+
helloworld: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=28c0d7033e0cd411b5a21eca3c31a04f2115c37c, with debug_info, not stripped
5656
ubuntu@ubuntu1804:~/C-Test/Hello$
5757
~~~
5858

0 commit comments

Comments
 (0)