Establish a Linux source code view using sourceinsight

Source: Internet
Author: User

Follow these steps to create a Linux kernel code project using source insight:

(1) Open Source insight and click project to bring up the drop-down menu.

(2) Click the new project button. The new project dialog box is displayed. Enter the project name and storage path, and click OK.

(3) The Add/delete file dialog box is displayed. In the kernel source code path, select all 2.6.25 kernel code and click Close.

(4) The add to project dialog box is displayed. Select the Add sub-directory recursively and click OK.

(5) Synchronize files. Click project to bring up the drop-down menu.

(6) Click the synchronize file option. This process takes 20-30 minutes.

After the project is created, ensure the association and synchronization between files. This process takes about 20 minutes.

(7) complete project establishment and browse the code. Right-click the name of the function to be searched, and select jump to definition from the drop-down menu to track the function.

 

Gcc-m a. C to obtain all the header files on which a. c depends.

 

After coding the code in sourceinsight, it must be synchronized with the original project file and manually performed.

Some commands for code search in sourceinsight.

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.