Install the GCC compiler and the GCC compiler1. Introduction to GCC
GCC (GNU Compiler Collection) is a powerful and superior programming language Compiler. It is one of the representative works of the GNU program. GCC is the most commonly used Compiler in Linux.
. I am using a CentOS6.664-bit system. because the installation of the gcc compiler is not checked during system installation, you need to install the gcc compiler on your own. Install gcc using yum for Linux releases with yum, install gc
For more information about installing the gcc compiler in Linux (
I recently practiced the questions above ACM.
If the run result is named correctly, it cannot be passed.
I think it is a problem with the compiler.
ACM is generally a GCC compiler.
It seems that it is better to use eclipse.
Next to eclipse for C ++ on the official website
Next, the GCC compiler for mingw.
Configuration is OK.
Use of eclipse for C ++:
1. if an error occurs during running, first bu
C language compilation process and GCC compilation parameters, gcc compilation Parameters
C language compilation generally involves three steps:
Gcc-E-o a. e a. c
Pre-compile the. c file. The generated target file name is a.e.
Pre-compilation is to replace the header file content contained in include with the C file, and delete unused comments in the code.
Exampl
What is the difference between arm-linux-gcc and arm-elf-gcc? embedded basic series-general Linux technology-Linux programming and kernel information. For more information, see the following. How can we explain the differences between arm-linux-gcc and arm-elf-gcc in one sentence?
Arm-linux-
Brief introductionSome of the software is newer and requires a higher GCC version, so you need to upgrade GCC. Compiling and installing is time consuming, so it is good to choose bin package directly.StepsAdd source1 sudo add-apt-repository ppa:ubuntu-toolchain-r/test2sudo apt-get updateInstall dependent packages (this is required if an error occurs)1 sudo Install Software-properties-commonUpgrade Installat
First, confirm that the GCC and make packages have been installedYou can use the Whereis command to view:If the Whereis gcc and whereis make commands have results, you can continue to do so by installing both software.Second, use GCC compile to run a HelloWorld program (only involves a single file)You can write a C program in any directory and then compile and ru
Common gcc/g ++ commands and gcc Command Options
Common options for gcc/g ++ commands (option description)
-O FILE specifies the output FILE name. This option is not required during compilation of the target code. If FILE is not specified, the default FILE name is a. out.
-C: only compile and generate the target file without Link
-Msung optimizes code for 486.
-O
-o0
-o1
-o2
-o3
4 levels of compiler optimization options,-o0 means no optimizations,-o1 defaults,-O3 optimization level most (here is Capital letter O)
Optimization Options (Source: http://blog.csdn.net/Sodier/article/details/452566)
This part of the content can be divided into two parts, part of this is to have the compiler analyze the code, and the other part is that we can make some information about the hardware for the compiler, and let him generate better code for the hardware, and we h
arm-linux-gcc Cross compiler and gcc compiler download address1. ARM-NONE-LINUX-GNUEABI-GCC compiler
ARM-NONE-LINUX-GNUEABI-GCC is the arm cross-compilation tool launched by Codesourcery (which has been acquired by mentor) based on GCC. Code that can be used to cross-compile
GCC program compilation and gcc Compilation1. Introduction
GCC program compilation can be divided into four stages:
Preprocessing (Pre-Preocessing)
Compile (Compiling)
Assembly)
Link (Linking)
2. Basic GCC usage
Basic usage:Gcc [options] [filename]Common options selection and usage are described as f
Method 1: # pragma pack (n)
Using the pseudo command # pragma pack (n), the compiler will align according to n Bytes;Use the pseudo command # pragma pack () to cancel the custom byte alignment.If the value of n specified in # pragma pack (n) is greater than the size of the maximum member in the structure, the structure still performs Bounds Based on the largest member in size.
Note: This method is added in gcc 4. At least
Use the _ attribute _ of gcc to compile the attribute section sub-item to construct the initialization function table. The gcc _ attribute _
This article forwarded from: https://my.oschina.net/u/180497/blog/177206
It solves song Baohua's previousC language object-oriented (for larger software) ppt sharing and ppt annotationsMulti-module software initialization
Gcc's _ attribute _ compilation attribute has
find, such as: http://forum.ubuntu.org.cn/index.php? Sid = c9ccb2d7adcf8fdb78ac99d75581a332 OK, continue to the topic .....
1. install GCC requires four related software:
M4 (an implementationof the traditional Unix macro processor ),
Gmp (GNU Multiple PrecisionArithmetic Library ),
Mpfr (that is, multiple-precisionfloating-point computations with correct rounding)
PC (C library for the arithmetic ofcomplex numbers with arbitrarily high precision and
I am using the CentOS 6.5 64-bit system, since the installation of the system is not checked to install the GCC compiler, so you need to install the GCC compiler yourself.Installing GCC with YumFor Linux distributions with Yum, installing the GCC compiler becomes so easy. We
Upgrade Redhat 5.5 GCC to 4.7.1 to compile AVX code
The GCC compiler of Redhat is version 4.1, which does not support SSE4, AVX, and AVX2 well. It is recommended that the GCC compiler be later than 4.7. So we started the GCC upgrade.
Because Redhat 5.5 is installed on a virtual machine, the online upgrade cannot be com
The following is a comparison between CentOS5 and FreeBSD9.0: the gcc that comes with CentOS5 is gcc (GCC) 4.1.2. you can use yum to install gcc44 (GCC) 4.4.4FreeBSD9.0 with gcc 4.2.1, you can install gcc4.6 through ports (currently 4. 6 .... the following compares
Compile and install GCC under CentOS6.8
For the GCC installation of the default version through yum in CentOS, CentOS 5 is 4.1.2, CentOS 6 is 4.4.7, and CentOS 7 is 4.8.3.Most of the time, compiling and installing software require
Compile and install GCC 4.9 and verify the use
1. Preparation environment (GCC compiler)
CentOS 6.3
Cat/proc/version
Linux version 2.6.32-279.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (G CC) #1 SMP Fri June 12:19:21 UTC 2012
GCC
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.