Scope extension
GCC support scope, in many aspects of C language can be used. One of these is the case statement in the Switch/case block. In a complex conditional structure, it is common to rely on nested IF statements to achieve the same results as listing 2 (see./linux/drivers/scsi/sd.c), but listing 2 is simpler. You can also use Switch/case to perform compiler optimizations by using a jum
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 s
Use of GCC compilerFirst install mingw and then add it to the system path, for example, F: \ mingw \ bin.In the 'COMMAND prompt ', type gcc-V to display the GCC version information.Usage:Gcc-g test. C-O test (see Li xianjing's book)In this way, test. C is compiled into test.exe in the directory where the test. c file is located.
that supports the MinGW compiler, such as Dev C + +, on Windows). Source code Editor You can choose any text editor you like (it is said that Microsoft's developers, including VC development, do not use VC's IDE editor, but choose the GNU VIM Editor). Then use tools such as make to compile, link, package, or even publish software projects. As with the CVS (SVN) Source version Control tool, anyone in the world can get involved in a software project.
2
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,
Directory:
GCC rules
Start...
Pre-compile
Compile
Assembly
Connection
Two other important options
Debugging
Summary
Site Link
Summary:To read this article, you need to have a basic understanding of the C language. This article will introduce how to use the gcc comp
installation is not less than 1 GB, the Swap is not less than 1 GB, and the hard disk is not less than 10 GB. Otherwise, an error may be reported and exited.After the compilation and installation are complete, the directory gcc-4.8.5 will have as much as 5 GB.1. Download source codeWget ftp://ftp.gnu.org/gnu/gcc/gcc-4
2018-01-12 19:10:42using the GNU compiler-GCC compiler under Windows1, MinGW (minimalist GNU on Windows) Compilation tool IntroductionMinGW is a compilation environment that uses only free software to generate pure Win32 executables , which is the minimalist (simplified) GNU on Windows merchants.Windows ported version of GCC
Source: http://www.hackerxfiles.net/
First, check whether GCC is installed on your machine and run the following command:
Run the rpm-q gcc check.
If there is no security check, check and install the following rpmLibbinutilsBinutilsMakeGlibc-develGcc-CPPGcc
See the following example: Test. c
# Include
Main ()
{Char * STR = "I like Linux! I advices you jion in the Linux World ";
Printf ("% s", STR );
Exit
Many may be very concerned about how to optimize and compile their own programs. Although I do not agree with the "Ashes" method, I have to admit that this is an excellent way to master GCC;
Therefore, we offer this post for your reference. It is absolutely original.
======================================
The default optimization level for most programs and libraries during compilation is "2" (with the GCC
Tags: string ring Other differences indirect many color HTTP harOne, 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 anyo
GNU, GCC, G ++ compiler in Linux1. GNUGNU is the abbreviation of "GNU's Not Unix". Stallman announced that GNU should be pronounced as Guh-NOO to avoid confusion with the word "new" (note: in English, Gnu stands for the African Impala. Its pronunciation is the same as that of new)To ensure that the GNU software can be freely used, copied, modified, and released ", all GNU software grants all rights to anyon
Binutils-2.17 | gcc-4.1.1 | glibc-2.5 for cross compiler record points-Linux general technology-Linux technology and application information, the following is a detailed reading. Author: iibull email: iibull@yahoo.com.cn nick: Daniel @ FUZHOU 20080515
If you need to reprint it, please indicate the author's source.
Tossing a day, finally get the arm-linux-gcc4.11. The record is as follows. By the way, I wis
The first name for GCC was GNU C compiler, which meant that the design was designed to compile the C language. Later, the continuous expansion developed into the GNU Compiler collection. If you compile the FORTRAN code with GCC, you will understand the latter more deeply. G++ 's design goal is to compile C + + program
Because vc6.0 is not good for C-language compilation, some statements are correct, but compilation does not passSo decided to install the GCC compiler in Windows to use!Http://www.cnblogs.com/cryinstall/archive/2011/08/27/2280827.htmlThanks to the above article to solve my problem:Main steps to the official website to download the program, may start relatively sl
First download the GCC compiler, and then follow the prompts to install.
1. MinGW is installed, and files are found in the Bin folder under its root directory.
To test, I created a new Test.bat file in this folder and wrote the contents as: GCC test.cpp
2. Then create the Test.cpp file in the folder and set i
GCC and G ++ are respectively gnu c C ++ Compilers
Gcc/g ++ requires a total of four steps for compiling.
1. pre-process and generate the. I file [pre-processor CPP]2. Do not convert the pre-processed files into assembly languages to generate the file. s [compiler egcs]3. a. o file is generated by means of compilation into the target code (machine code) [assembl
GCC is the GNU Free C compiler, which is installed by default for many Linux releases. Many popular free software original code can be compiled and run under the GCC compiler.
Although GCC has many platforms (operating system) versions, the General commercial UNIX system do
/lib--without-included-gettext--enable-threads=posix- -with-gxx-include-dir=/usr/include/c++/4.4--libdir=/usr/lib--enable-nls--with-sysroot=/--enable-clocale=gnu-- Enable-libstdcxx-debug--enable-objc-gc--enable-targets=all--disable-werror--with-arch-32=i686--with-tune= Generic--enable-checking=release--build=i686-linux-gnu--host=i686-linux-gnu--target=i686-linux-gnuThreading Model: POSIXGCC version 4.4.6 (Ubuntu/linaro 4.4.6-11ubuntu2)Change the default version of g++ in the same way.Method Two:
GCC and g++ are GNU C C + + compiler gcc/g++ in a total of 4 steps to perform the compile work
1. Preprocessing, generating. I files [preprocessor CPP]2. The preprocessed file will not be converted into assembly language, generating files. s[compiler Egcs]3. Files with assembly into object code (machine code) generat
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.