Developing ARM Linux programs using the Eclipse integrated development Environment __linux

Source: Internet
Author: User

Believe that a lot of students want to get started Linux is a headache for Linux development environment, the previous use of command compilation, such as compiling main.c using the command arm-linux-gcc-o main main.c, very inconvenient to use, now have the Eclipse integrated development environment, Make the development simple.

First, make sure that the computer is properly installed with Eclipse and arm Linux GCC, I'm using Ubuntu 12.04 to install Eclipse, and arm Linux GCC, which has a lot of installation methods on the Web, and there's a whole bunch of them in the csdn that they're trying to install, Can learn a lot of things.

1. First build a PC project,

2. Select project Type and tool chain, we choose C Project/executable file/Empty project, use Linux GCC tool chain.

3. Create a new. c File after the project is completed

4. Enter a simple test procedure.

5. Click Save, then compile (shortcut key ctrl+b)

6. Compile complete without errors, you can run the

7. The final output, you can also use debug to debug the program, the method is very simple, here is not for example

Build Arm Linux Project,

1. Ensure arm Linux GCC is installed correctly and set environment variables

Input arm-linux-gcc-v in the terminal if the correct output of relevant information, you can do the following operation, otherwise please check the online data to set.

2. Also new C project

3. Select the executable file, and it is important to select the tool chain

Choose Cross gcc here, then you need to set up the ARM Linux GCC tool chain

4. This step is important to set up the ARM-LINUX-GCC tool chain, above a set compiler prefix arm-linux-

The following is a set of compiler path, that is, ARM-LINUX-GCC tools such as the path, according to their actual situation changes

5. Create new. c files after the same project is completed

6. Input simple code, in the left include inside can see the related arm-linux system header file directory

7. Finally save the compilation download to the Development Board run, note that this can not be directly debugged, the following will teach you to use Eclipse to develop embedded Linux-driven, very cool, integrated development environment is very convenient, the most convenient is to use ECLIPSE+GDB for remote debugging, look forward to follow-up ...

Related Article

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.