Both GCC and G ++ are GNU compilers.
Misunderstanding 1: GCC can only compile CCode, G ++ can only compile C ++ codeBoth can be used, but note the following:1. The suffix is. C. GCC treats it as C.ProgramAnd g ++ as a C ++ program; suffix. CPP, both of which are considered as C ++ programs. Note that although C ++ is a superset of C, their syntax requirements a
The most common C-language compiler currently available under Linux is GCC (GNU Compiler Collection), a compiler system that complies with the ANSI C standard in the GNU Project and compiles programs written in languages such as C, C + +, and Object C. GCC is not only very powerful, but also extremely flexible in structure. The most commendable thing is that it can support various languages through differen
Introduction to GCC
1. GCC is the abbreviation of GNU Compiler Collection. Originally, it was a C language compiler (gnu c compiler). The author was Richard Stallman and was the founder of the GNU project. Now it supports multiple languages, such as C, C ++, Java, Pascal, Ada, and Cobol.
2. Main features:
GCC is a portable compiler that supports multiple
One, GNUGNU is the "GNU's not Unix" recursive abbreviation, Stallman announced that GNU should pronounce Guh-noo (slave) to avoid confusion with the word new (note: GNU in English is intended to be the African wildebeest, the same pronunciation as new)In order to ensure that GNU software is free to "use, reproduce, modify and distribute", all GNU software is licensed under the terms of an agreement that authorizes all rights to anyone without the addition of any restrictions to any other person,
errors, and any warnings are stopped from compiling-wall: Open Most warning tips-wshadow: A statement block scope variable has the same name as another variable for a larger scope (this warning is not included in the-wall option and needs to be opened separately)-wextra: Warn about all legitimate but questionable expressions Alert optimization Options
-o0: Turn off all tuning options-O1: First-level optimization, use this option to make the executable file smaller, run faster, and not add too m
By Lorne Bailey About Author:Lorne lives in Chicago and is a computer consultant. He specializes in importing and exporting data to and from Oracle databases. He has been using the * nix environment since he switched to the programming field, And Lorne has completely avoided the "DLL hell ". He is pursuing a master's degree in computer science.
Directory:
GCC rules
Start...
Pre-compile
Compile
Assembly
Con
Installing GCC in Ubuntu is a little different from other Linux systems. 1) install vim) Open the command line to run sudoapt-getinstallvim, and enter the administrator password as prompted. Gcc + gdb) enter the command line to run sudoapt-getinstallbuild-essential build-essential, which contains tools such as gcc and gdb, and is a C Language Development Kit. Run
I. Overview
C and C ++ compilers are integrated. Compilation is generally divided into four steps:
Preprocessing)
Compile)
Assembly)
Connection (linking)
Gcc
The pre-processing file (. I) is a C file, and the C-form connection is set;
G ++
It is considered that the pre-processed file is (. I) A C ++ file, and a connection in the C ++ form is set;
Some Meanings of the source file suffix and subsequent operations:
. C source program preprocessi
From: http://hi.baidu.com/419836321/blog/item/690ba4a5bbc597ef9152ee26.html
Http://gcc.gnu.org/
To compile the software, the gcc4.4.1 version of Ubuntu is too high and gcc3.x is required. Therefore, you need to install GCC of the lower version. I chose gcc3.4.4.1. Download the Deb installation package. If I select the source code package for compilation and installation, an error will occur. Therefore, select Deb package for installation. The package
Recently developed with Xcode under Mac OS X Mountain Lion, there are two compilers shown below in the compilation options: One is Apple LLVM compiler 4.2 and the other is LLVM GCC 4.2.In recent years I've heard that LLVM is better than GCC, but I haven't had time to study the difference. Starting with this problem, I have thrown a lot of questions to myself:
CC, c89, what's C99? What's the differe
After studying linux gcc for a long time, I found that it is also necessary to understand linux gcc. Today I have collected the concepts and functions of Block devices for you. I hope you will have a lot to learn.
1. c/c ++ compiler included in linux gccGcc, cc, c ++, g ++:Gcc and cc are the same. c ++ and g ++ are the same. Generally, c Programs are compiled usi
Compile:
The first step is to pre-compile. The-E parameter allows GCC to stop the compilation process after preprocessing:
Gcc-E hello. c-o hello. I
Pre-processing macro definition inserted into hello. I
Step 2: Compile hello. I as the target code, which can be done by using the-c parameter:
Gcc-c hello. I-o hello. o
It can also be directly generated through the
System environment: Amazon Linux AMI 2015.09.2 (HVM)---Fedora Server1. Download the gcc-5.3.0 installation package and put the gcc-5.3.0.tar.gz into the/opt directory to extract:#sudo su#mkdir/opt/cd/opt/#wget http://ftp.gnu.org/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.gz#tar –ZXF
How to Use GCC to compile programs and generate simple programs in Linux
Static library and dynamic library.
This article applies to Linux developers. This article explains how to use GCC to compile programs, generate static libraries and dynamic libraries in Linux.
1. About installation. Generally, the compiler is installed by default, and there is a lot of information on the network to introduce the i
Original URL:
Http://www.cnblogs.com/clark168/p/5339361.html
System environment: Amazon Linux AMI 2015.09.2 (HVM)---Fedora Server
1, download the gcc-5.3.0 installation package and put the gcc-5.3.0.tar.gz into the/OPT directory decompression:
#sudo su
#mkdir/opt/cd/opt/
#wget http://ftp.gnu.org/gnu/gcc/gcc-5.3.0/
It's almost a semester to learn embedded system design and application. I haven't used GCC to compile a program, let alone other programming environments. The reason is that my system does not have GCC, I want to install one but I don't know how to install it. After Google's introduction, I found that it basically introduced the GCC in the form of source code ins
ArticleDirectory
4. Warning options
5. connection options
GCC compiler (1) 4. Warning options
During compilation, the compiler reports errors and warningsProgramThe GCC contains the complete error check and warning function, which can help Linux programmers identify the error or potential error as soon as possible.CodeTo write better code. The following table lists the
For software compilation, the gcc4.4.5 version of Ubuntu 10.10 LTS is too high and gcc3.x is required. Therefore, you need to install gcc of lower version. I chose gcc3.3.6.1. Download the deb installation package. If I select the source code package for compilation and installation, an error will occur. Therefore, select deb package for installation. The package I downloaded is:Cpp-3.3_3.3.6-15ubuntu6_i386.debGcc-3.3_3.3.6-15ubuntu6_i386.debGcc-3.3-b
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.