Finally, we can write the Hello program to the Linux system.

Source: Internet
Author: User
Finally, you can write the Hello program to the Linux system-Linux general technology-Linux programming and kernel information. The following is a detailed description. The Hello. c program is as follows:

# Include
Int main (void)
{
Printf ("Hello, Real2410 ");
Return 0;
}

Compile hello
Open Terminal
Enter the hello directory
Arm-linux-gcc? O hello. c
It will be converted into a hello executable file under the hello directory.

I used FTP for download. The specific process is as follows:

1. First set the Server IP Address

I set 192.168.1.17.

# Ifconfig eth0 192.168.1.17 netmask 255.255.255.0

2. Enable the FTP server.

#/Sbin/service vsftpd start

3. Set the Development Board (client) IP Address

I set 192.168.1.100.

# Ifconfig eth0 192.168.1.100 netmask 255.255.255.0

3. log on to the FTP server using the Development Board (client ).

Ftp 192.168.1.17

Connected to 192.168.1.17 (192.168.1.17 ).
220 (vsFTPd 1.1.3)

4. Enter the username anonymous. The password is blank.
Name (192.168.1.17: root): anonymous
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.

5. Download the hello program from the Development Board (client)

Get hello; download hello

6. log out of the FTP server

Bye

7. The downloaded hello program is in the/directory.

8. Change the executable permission of hello.

Chmod a + x hello

9. Run the hello program on the Development Board.

./Hello

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.