-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
to set up Yum source.After installing CentOS, it is generally necessary to modify the Yum source to achieve the desired speed when installing the update RPM package. Domestic relatively fast has 163 source, Sohu source. Here is an example of a 163 source.1. CD/ETC/YUM.REPOS.D2. MV Centos-base.repo Centos-base.repo.backup3. wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo4. MV Centos6-base-163.repo Centos-base.repo5.yum Clean AllThis article is from the Linux learning blog, so be sure to
Download: http://ftp.gnu.org/gnu/gcc/gcc-4.5.1/gcc-4.5.1.tar.bz2Browse: HTTP://FTP.GNU.ORG/GNU/GCC/GCC-4.5.1/View Changes:http://gcc.gnu.org/gcc-4.5/changes.htmNow many programmers are using G
Ive Windows.This TDM-GCC release incorporates a few more local patches from the MINGW-W64 project ' s mingw-builds releases. Also, a 32-bit gdb is now available, and both 32-bit and 64-bit GDB automatically load GCC ' s libstdc++ "pretty Printers", If available, to provide more readable debugging output for libstdc++ objects. See the README files included in the
When developing applications for Linux, the C language is used in most cases. Therefore, almost every Linux programmer is faced with a primary problem.Flexible use of the C compiler. Currently, the most common C language compiler in Linux is GCC (GNU Compiler Collection), which complies with ansi c in the GNU project.The standard compilation system can compile programs written in C, C ++, Object C, and other languages.
preparatory work
Download and unzip the GCC source pack
Download a GCC source package from HTTP://FTP.GNU.ORG/GNU/GCC that you want to compile. For example, download is gcc-4.7.2.tar.bz2, and then use the input decompression command TAR-XVF 4.7.2.tar.bz2
To install the required libraries
When you use the./configure co
Installing GCC under Ubuntu is a bit different from some other Linux systems.
First, installation method one:
sudo apt-get build-dep gccMethod Two:
sudo apt-get install build-essentialAfter installation, you can perform the following commands to view the version.
GCC--versionThe output is as follows:
GCC (GCC
1. What is GCC?
In Linux, GCC (gnu c compiler) is a powerful and superior multi-platform compiler launched by GNU. It is one of the representative works of GNU. GCC can compile and execute on multiple hardware platformsProgramThe execution efficiency of the Super compiler is 20% higher than the average efficiency of the general compiler ~ 30%.
The
The gcc application in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. When developing applications for Linux, the C language is used in most cases. Therefore, almost every Linux programmer is faced with the primary issue of flexible use of the C compiler. Currently, the most common C language Compiler in Linux is GCC (GNU Compiler Collection
April 20, 2004 the latest version of the GCC compiler 3.4.0 released. At the moment, GCC can be used to compile programs in C + +, FORTRAN, JAVA, OBJC, and Ada languages, and you can choose to install supported languages as needed. GCC 3.4.0 supports the C + + standard better than previous versions. This article introduces the installation process of
A wonderful tour of GCC
**************************************** *************************************This article by zhengtai Linux http://linux-down.kmip.net collection, sorting, If You Need To reprint, please indicate the source!This site has a large number of Linux electronic tutorials, software, and technical documents. Welcome to visit! Webmaster aitai QQ: 253222170***
In this article about configuring the CUDA environment in Linux (see the http://www.linuxidc.com/Linux/2011-12/49874.htm), the latest CUDA version 4.1 only supports gcc4.6 or earlier, while gcc in my Fedora is 4.6.1, to this end, we need to downgrade the gcc version, which is complicated as long as it involves modifying the gcc version. I use Fedora.
In this arti
When developing applications for Linux, the C language is used in most cases. Therefore, almost every Linux programmer is faced with the primary issue of flexible use of the C compiler. Currently, the most common C language compiler in Linux is GCC (GNU Compiler Collection), which is a compilation system that complies with the ansi c standard in the GNU project, compile programs written in C, C ++, Object C, and other languages. Not only is
Generally, the GCC compiler is provided in Linux. You can use your installation CD to install it. If you think the built-in GCC version is too low, you can download it from the official GCC website. It takes a long time to compile. If you only compile C or C ++, you can only download gcc-G ++ and
Currently, GCC can be used to compile programs in C/C ++, Fortran, Java, objc, Ada, and other languages. You can select the language to install. This article introduces the installation process of GCC by taking gcc4.1.2 installed on Redhat Linux as an example (the latest GCC version is not used because it is required during project development.
Before installatio
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.