Development environment for Linux C programs

Source: Internet
Author: User

1. Composition of the development environment

    1. Editor Vim,vi
    2. Compiler GCC
    3. Debugger GDB
    4. function library glibc
    5. System Header File Glibc_header

2.GCC compiler

Powerful and superior multi-platform compiler, GCC can compile and connect C, C + + language source programs into executable files.

file with. c suffix, C language source code file

A file with a suffix of. h is a header that is included in the program.

Files with. I suffix are pre-preprocessed C source code files

Files with an. o suffix are the compiled target files

. s is the suffix of the file, is the assembly language source code files

Options for the GCC compiler

-O requires output executable file

-C requires the compiler to output the target code without the need to output an executable file

-G requires the compiler to output debugging information at compile time

3.glibc

is the main function library of C under Linux

A C library that provides system calls and basic functions that all dynamic, connected programs use.

4.glibc_header

If the system header file is missing, many C programs that use the system function will not compile

View the version of GLIBC

ls/lib/lib-*

View GCC versions

GCC--version

Development environment for Linux C programs

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.