`
lobin
  • 浏览: 417718 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
阅读更多

 

gcc

 

写道
https://gcc.gnu.org/onlinedocs

 

 

gcc安装

# mkdir gcc-core-4.4.7

# tar zxvf gcc-core-4.4.7.tar.gz -C ./gcc-core-4.4.7

 

# mkdir obj

# cd obj/

# ../configure --prefix=/usr/local/gcc-core-4.4.7

 

checking for correct version of gmp.h... no

configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.

Try the --with-gmp and/or --with-mpfr options to specify their locations.

Copies of these libraries' source code can be found at their respective

hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.

See also http://gcc.gnu.org/install/prerequisites.html for additional info.

If you obtained GMP and/or MPFR from a vendor distribution package, make

sure that you have installed both the libraries and the header files.

They may be located in separate packages.

 

# yum list installed | grep gmp-devel

发现没有安装

# yum list installed | grep gmp

gmp.i686             4.3.1-13.el6        @anaconda-CentOS-201806291517.i386/6.10

倒是发现只安装了这个。

 

安装gmp-devel

# yum install -y gmp-devel

# yum list installed | grep gmp-devel

gmp-devel.i686       4.3.1-13.el6        @base 

 

checking for correct version of mpfr.h... no

configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.

Try the --with-gmp and/or --with-mpfr options to specify their locations.

Copies of these libraries' source code can be found at their respective

hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.

See also http://gcc.gnu.org/install/prerequisites.html for additional info.

If you obtained GMP and/or MPFR from a vendor distribution package, make

sure that you have installed both the libraries and the header files.

They may be located in separate packages.

 

# # yum list installed | grep mpfr-devel

发现没有安装

# yum list installed | grep mpfr

mpfr.i686            2.4.1-6.el6         @base

倒是发现只安装了这个。

安装mpfr-devel

# yum install -y mpfr-devel

# yum list installed | grep mpfr-devel

mpfr-devel.i686      2.4.1-6.el6         @base

 

# ../configure --prefix=/usr/local/gcc-core-4.4.7

 

 

/home/root/packages/gcc-core-4.4.7/gcc-4.4.7/obj/./gcc/xgcc -B/home/root/packages/gcc-core-4.4.7/gcc-4.4.7/obj/./gcc/ -B/usr/local/gcc-core-4.4.7/i686-pc-linux-gnu/bin/ -B/usr/local/gcc-core-4.4.7/i686-pc-linux-gnu/lib/ -isystem /usr/local/gcc-core-4.4.7/i686-pc-linux-gnu/include -isystem /usr/local/gcc-core-4.4.7/i686-pc-linux-gnu/sys-include -g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -I../../../libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -Wno-missing-prototypes -Wno-type-limits -o floatsitf.o -MT floatsitf.o -MD -MP -MF floatsitf.dep -fexceptions -c ../../../libgcc/../gcc/config/soft-fp/floatsitf.c -fvisibility=hidden -DHIDE_EXPORTS

 

# make

# make install

 

目录结构

写道
├── bin
│   ├── cpp
│   ├── gcc
│   ├── gccbug
│   ├── gcov
│   ├── i686-pc-linux-gnu-gcc
│   └── i686-pc-linux-gnu-gcc-4.4.7
├── include
├── info
│   ├── dir
│   └── libgomp.info
├── lib
│   ├── gcc
│   │   └── i686-pc-linux-gnu
│   │   └── 4.4.7
│   │   ├── crtbegin.o
│   │   ├── crtbeginS.o
│   │   ├── crtbeginT.o
│   │   ├── crtend.o
│   │   ├── crtendS.o
│   │   ├── crtfastmath.o
│   │   ├── crtprec32.o
│   │   ├── crtprec64.o
│   │   ├── crtprec80.o
│   │   ├── finclude
│   │   ├── include
│   │   │   ├── ammintrin.h
│   │   │   ├── avxintrin.h
│   │   │   ├── bmmintrin.h
│   │   │   ├── cpuid.h
│   │   │   ├── cross-stdarg.h
│   │   │   ├── emmintrin.h
│   │   │   ├── float.h
│   │   │   ├── immintrin.h
│   │   │   ├── iso646.h
│   │   │   ├── mf-runtime.h
│   │   │   ├── mm3dnow.h
│   │   │   ├── mmintrin-common.h
│   │   │   ├── mmintrin.h
│   │   │   ├── mm_malloc.h
│   │   │   ├── nmmintrin.h
│   │   │   ├── omp.h
│   │   │   ├── pmmintrin.h
│   │   │   ├── smmintrin.h
│   │   │   ├── ssp
│   │   │   │   ├── ssp.h
│   │   │   │   ├── stdio.h
│   │   │   │   ├── string.h
│   │   │   │   └── unistd.h
│   │   │   ├── stdarg.h
│   │   │   ├── stdbool.h
│   │   │   ├── stddef.h
│   │   │   ├── stdfix.h
│   │   │   ├── tmmintrin.h
│   │   │   ├── unwind.h
│   │   │   ├── varargs.h
│   │   │   ├── wmmintrin.h
│   │   │   ├── x86intrin.h
│   │   │   └── xmmintrin.h
│   │   ├── include-fixed
│   │   │   ├── limits.h
│   │   │   ├── linux
│   │   │   │   └── a.out.h
│   │   │   ├── README
│   │   │   └── syslimits.h
│   │   ├── install-tools
│   │   │   ├── fixinc_list
│   │   │   ├── gsyslimits.h
│   │   │   ├── include
│   │   │   │   ├── limits.h
│   │   │   │   └── README
│   │   │   ├── macro_list
│   │   │   └── mkheaders.conf
│   │   ├── libgcc.a
│   │   ├── libgcc_eh.a
│   │   └── libgcov.a
│   ├── libgcc_s.so -> libgcc_s.so.1
│   ├── libgcc_s.so.1
│   ├── libgomp.a
│   ├── libgomp.la
│   ├── libgomp.so -> libgomp.so.1.0.0
│   ├── libgomp.so.1 -> libgomp.so.1.0.0
│   ├── libgomp.so.1.0.0
│   ├── libgomp.spec
│   ├── libiberty.a
│   ├── libmudflap.a
│   ├── libmudflap.la
│   ├── libmudflap.so -> libmudflap.so.0.0.0
│   ├── libmudflap.so.0 -> libmudflap.so.0.0.0
│   ├── libmudflap.so.0.0.0
│   ├── libmudflapth.a
│   ├── libmudflapth.la
│   ├── libmudflapth.so -> libmudflapth.so.0.0.0
│   ├── libmudflapth.so.0 -> libmudflapth.so.0.0.0
│   ├── libmudflapth.so.0.0.0
│   ├── libssp.a
│   ├── libssp.la
│   ├── libssp_nonshared.a
│   ├── libssp_nonshared.la
│   ├── libssp.so -> libssp.so.0.0.0
│   ├── libssp.so.0 -> libssp.so.0.0.0
│   └── libssp.so.0.0.0
├── libexec
│   └── gcc
│   └── i686-pc-linux-gnu
│   └── 4.4.7
│   ├── cc1
│   ├── collect2
│   └── install-tools
│   ├── fixincl
│   ├── fixinc.sh
│   ├── mkheaders
│   └── mkinstalldirs
├── man
│   ├── man1
│   │   ├── cpp.1
│   │   ├── gcc.1
│   │   └── gcov.1
│   └── man7
│   ├── fsf-funding.7
│   ├── gfdl.7
│   └── gpl.7
└── share
└── locale
├── be
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── ca
│   └── LC_MESSAGES
│   └── cpplib.mo
├── da
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── de
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── el
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── es
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── fi
│   └── LC_MESSAGES
│   └── gcc.mo
├── fr
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── id
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── ja
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── nl
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── ru
│   └── LC_MESSAGES
│   └── gcc.mo
├── sr
│   └── LC_MESSAGES
│   └── gcc.mo
├── sv
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── tr
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
├── uk
│   └── LC_MESSAGES
│   └── cpplib.mo
├── vi
│   └── LC_MESSAGES
│   └── cpplib.mo
├── zh_CN
│   └── LC_MESSAGES
│   ├── cpplib.mo
│   └── gcc.mo
└── zh_TW
└── LC_MESSAGES
├── cpplib.mo
└── gcc.mo

62 directories, 132 files

 

$ gcc -print-prog-name=cc1 -v

使用内建 specs。

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe

/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe

 

如果是C++的话

$ gcc -print-prog-name=cc1plus -v

使用内建 specs。

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe

/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1plus.exe

 

查看头文件搜索路径

gcc -x c -E -v -

执行结果如下:

$ gcc -x c -E -v -

Apple LLVM version 8.0.0 (clang-800.0.38)

Target: x86_64-apple-darwin16.7.0

Thread model: posix

InstalledDir: /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 "/Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 274.1 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0 -fdebug-compilation-dir /Users/admin -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o - -x c -

clang -cc1 version 8.0.0 (clang-800.0.38) default target x86_64-apple-darwin16.7.0

#include "..." search starts here:

#include <...> search starts here:

 /usr/local/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

 /usr/include

 /System/Library/Frameworks (framework directory)

 /Library/Frameworks (framework directory)

End of search list.

 

 

 

这里的-x c和-E选项其实只需要指定一个就行,打印出来的内容都是一样的。

 

只指定-x c选项:

$ gcc -x c -v -

Apple LLVM version 8.0.0 (clang-800.0.38)

Target: x86_64-apple-darwin16.7.0

Thread model: posix

InstalledDir: /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 "/Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 274.1 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0 -fdebug-compilation-dir /Users/admin -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/2l/yzjcl8j56693p3y40qcnr4zc0000gn/T/--a1eb43.o -x c -

clang -cc1 version 8.0.0 (clang-800.0.38) default target x86_64-apple-darwin16.7.0

#include "..." search starts here:

#include <...> search starts here:

 /usr/local/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

 /usr/include

 /System/Library/Frameworks (framework directory)

 /Library/Frameworks (framework directory)

End of search list.

 

 

只指定-E选项:

$ gcc -E -v -

Apple LLVM version 8.0.0 (clang-800.0.38)

Target: x86_64-apple-darwin16.7.0

Thread model: posix

InstalledDir: /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 "/Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 274.1 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0 -fdebug-compilation-dir /Users/admin -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o - -x c -

clang -cc1 version 8.0.0 (clang-800.0.38) default target x86_64-apple-darwin16.7.0

#include "..." search starts here:

#include <...> search starts here:

 /usr/local/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

 /usr/include

 /System/Library/Frameworks (framework directory)

 /Library/Frameworks (framework directory)

End of search list.

 

 

需要注意的是, 这条命令执行后会阻塞,需要按下Ctl+C中断退出。并且因为被阻塞的原因,就没办法将输出的内容再重定向输出,如重定向到/dev/null、重定向到标准输出等。

 

不希望这条命令执行后阻塞的话:

echo | gcc -x c -E -v - 

这里通过一个管道将两条命令给串联了起来,前一个命令echo会输出一个EOF,它的输出作为后一个命令的输入,因此后面的命令在输出完后会再输出一个EOF以结束而不会被阻塞。

 

或者,不使用管道串联的方式,而采用标准输入的方式:

gcc -x c -E -v - </dev/null

这两种方式效果是一样的。

 

不过这样的话,会多出来一些输出内容,以采用管道串联的方式为例:

$ echo | gcc -x c -E -v -

Apple LLVM version 8.0.0 (clang-800.0.38)

Target: x86_64-apple-darwin16.7.0

Thread model: posix

InstalledDir: /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

 "/Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 274.1 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0 -fdebug-compilation-dir /Users/admin -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o - -x c -

clang -cc1 version 8.0.0 (clang-800.0.38) default target x86_64-apple-darwin16.7.0

#include "..." search starts here:

#include <...> search starts here:

 /usr/local/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0/include

 /Users/admin/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include

 /usr/include

 /System/Library/Frameworks (framework directory)

 /Library/Frameworks (framework directory)

End of search list.

# 1 "<stdin>"

# 1 "<built-in>" 1

# 1 "<built-in>" 3

# 330 "<built-in>" 3

# 1 "<command line>" 1

# 1 "<built-in>" 2

# 1 "<stdin>" 2

 

 

可以看到下面会多出来一些输出内容:

# 1 "<stdin>"

# 1 "<built-in>" 1

# 1 "<built-in>" 3

# 330 "<built-in>" 3

# 1 "<command line>" 1

# 1 "<built-in>" 2

 

# 1 "<stdin>" 2

 

另外需要说明的是,这个命令输出来的是标准错误输出。如果前面通过管道将echo命令给串联进来的话,多出来的一些输出内容是标准输出。

 

因此我们可以将标准输出的那部分多出来的内容给重定向到/dev/null

echo | gcc -x c -E -v - >/dev/null

这样就不会多出来下面输出的内容

 

由于这个命令输出来的是标准错误输出,如果我们希望将这个标准错误输出重定向到标准输出的话,可以如下:

echo | gcc -x c -E -v - 2>&1

这有时候会很有用。

 

当程序crash时,通常会产生core文件,这个并不是C或者GCC编译的内容,任何程序运行如果crash的话,都有可能会产生这个文件。在这里提这个问题,我们大多数人写的第一个C程序,还出错了,这种情况都不知道什么原因,不知道怎么去排查。第一次碰到这个问题的时候,可能很多人还没有注意到这个core文件。这个时候可以通过分析产生的core文件来排查原因。

 

 

这个core文件可能并不会产生,原因有多方面,可能程序在要crash时,在还没有生成core并写入磁盘之前,进程已经退出了。另一个原因就是可能默认不会生成这个core文件。会不会产生core文件跟"core file size"这个系统参数也有关,可能这个参数为0,那么默认就不会产生core文件。这个可以查看"core file size"这个系统参数。另一个需要注意的原因就是这个core文件是在哪里产生的。这个core文件通常就在运行的程序所在的目录下,但也不一定,比如在MacOS下,这个core文件是在/cores目录下的。这个core文件路径其实还跟"kern.corefile"这个内核参数有关,可以通过以下命令查看。

 

$ sysctl kern.corefile

kern.corefile: /cores/core.%P

 

$ ulimit -a | grep "core file size"

core file size          (blocks, -c) 0

 

或者

$ ulimit -c

0

 

查看更多信息

$ ulimit -a

core file size          (blocks, -c) 0

data seg size           (kbytes, -d) unlimited

file size               (blocks, -f) unlimited

max locked memory       (kbytes, -l) unlimited

max memory size         (kbytes, -m) unlimited

open files                      (-n) 256

pipe size            (512 bytes, -p) 1

stack size              (kbytes, -s) 8192

cpu time               (seconds, -t) unlimited

max user processes              (-u) 709

virtual memory          (kbytes, -v) unlimited

 

MacOS默认这个参数为0,那么在MacOS下默认不会产生这个core文件。

 

如果需要产生core文件,可以设置下这个参数。

$ ulimit -c unlimited

 

 

MacOS下我在设置"core file size"这个系统参数时发现没有设置成功

 

我先是执行以下命令,但提示“Operation not permitted”,应该权限的原因。

$ ulimit -c unlimited

-bash: ulimit: core file size: cannot modify limit: Operation not permitted

 

然后我sudo执行下这个命令

$ sudo ulimit -c unlimited

Password:

 

看着好像设置成功了,但查看后发现没有设置上去

$ ulimit -a | grep "core file size"

core file size          (blocks, -c) 0

 

我之前有成功设置过这个参数,因为MacOS下默认为0,所以我通过执行“ulimit -c unlimited”这个命令成功设置过这个参数,当时并没有提示“Operation not permitted”。

 

后来我又把这个参数重新设置为默认的0了,也是执行的“ulimit -c 0”这个命令。

现在我想再设置下这个参数,就发现这个问题,一直设置不进去。

 

解决办法就是关闭当前这个控制台,重新打开一个,就可以设置了。

0
0
分享到:
评论

相关推荐

    gccversion 12.1.0(GCC)

    《使用GNU Compiler Collection (GCC) 12.1.0》是GNU Press出版的一本关于GCC的指南,由Richard M. Stallman和GCC开发者社区共同撰写。GCC,全称为GNU Compiler Collection,是一套广泛使用的开源编译器集合,支持...

    离线安装GCC与GCC-C++

    - 源码安装完成后,可以通过`gcc --version`和`g++ --version`命令来验证GCC和GCC-C++是否成功安装,并查看其版本信息。 离线安装GCC与GCC-C++虽然过程相对复杂,但能确保在没有网络的环境中也能进行编译工作,这...

    tdm64-gcc安装包

    **tdm64-gcc安装包** `tdm64-gcc` 是一款专为Windows操作系统设计的64位版本的GCC(GNU Compiler Collection)编译器。GCC是开源的,由GNU项目维护,它包含了C、C++、Objective-C、Fortran、Ada和Go等多种编程语言...

    linux中gcc4.8.5,下载解压即可直接使用,linux系统GCC编译

    Linux中的GCC(GNU Compiler Collection)是开源的、跨平台的编译器套件,用于将C、C++、Fortran、Objective-C等编程语言的源代码编译为可执行文件。GCC 4.8.5是该系列的一个稳定版本,发布于2015年,虽然不是最新版...

    gcc yum源安装

    根据所提供的文件信息,我们将详细解释如何通过YUM源在Linux系统中安装不同版本的GCC(GNU编译器集合)。首先,将讲述Linux系统中GCC的重要性,以及如何通过YUM源安装特定版本的GCC。接着,我们根据内容片段提供的...

    gcc4.4.7 离线安装

    在IT行业中,GCC(GNU Compiler Collection)是广泛使用的开源编译器套件,它支持多种编程语言,包括C、C++、Fortran等。在CentOS 6.5这样的旧版Linux系统上,由于软件仓库中的版本可能较旧,有时需要离线安装更新的...

    Keil5配置GCC编译器_Keil5配置GCC编译器_

    它默认集成了ARMCC编译器,但有时候开发者可能希望使用GCC编译器,因为GCC是开源且跨平台的,具有更广泛的社区支持和丰富的库资源。本篇文章将详细讲解如何在Keil5中配置和使用GCC编译器。 一、安装GCC编译器 首先...

    GCC_广义互相关_gcc时延_互相关时延_gcc_matlab

    在信号处理领域,广义互相关(Generalized Cross-Correlation, GCC)是一种重要的时延估计方法,尤其在声源定位、同步系统和通信工程中应用广泛。GCC 算法是基于传统的互相关函数(Cross-Correlation Function, CCF...

    gcc、gcc++ 离线安装包

    GCC(GNU Compiler Collection)是GNU项目的一部分,是一个开源的、跨平台的编译器套件,主要用于C、C++、Objective-C、Fortran、Ada、Go等编程语言。它不仅包含编译器,还包括预处理器、链接器和其他相关工具。在...

    gcc-8.5.0源码包

    **GCC 8.5.0 源码分析与编译指南** GCC(GNU Compiler Collection)是GNU项目的一部分,是一个广泛使用的开源编译器套件,支持多种编程语言,包括C、C++、Objective-C、Fortran、Ada、Go等。在本篇文章中,我们将...

    gcc-13.3.0.tar.gz

    GCC(GNU Compiler Collection,GNU编译器套件)是由GNU开发的编程语言编译器。GNU编译器套件包括C、C++、 Objective-C、 Fortran、Java、Ada和Go语言前端,也包括了这些语言的库(如libstdc++,libgcj等。) GCC的...

    gcc各个版本下载_gcc-4.8.5.rar

    GCC,全称GNU Compiler Collection(GNU编译器集合),是由GNU项目开发并维护的一套开源编译工具集。它不仅包含C、C++、Fortran、Ada和Objective-C等编程语言的编译器,还提供了预处理器、链接器及其他相关的工具。...

    gcc_广义互相关_gcc时延_GCC互相关_gcc_源码.rar

    在IT领域,GCC(GNU Compiler Collection)是一种广泛使用的开源编译器套件,它支持多种编程语言,如C、C++、Fortran、Objective-C等。这个压缩包文件的标题和描述都涉及到“广义互相关”、“GCC时延”和“GCC互相关...

    arm-linux-gcc和arm-elf-gcc 区别

    "arm-linux-gcc和arm-elf-gcc 的区别" arm-linux-gcc 和 arm-elf-gcc 是嵌入式交叉编译工具链中最常用的两个 GCC 工具链,它们之间的主要区别在于使用不同的 C 库文件。arm-linux-gcc 使用 GNU 的 Glibc,而 arm-...

    GCC 11.2 离线安装包

    GCC,全称GNU Compiler Collection,是GNU项目的一部分,是一套由GNU开发的开源编译器套件,用于将源代码转换为计算机可执行的程序。GCC支持多种编程语言,包括C、C++、Fortran、Ada和Objective-C等。版本11.2是GCC...

    gcc 4.8.5离线安装包

    GCC,全称GNU Compiler Collection(GNU编译器集合),是一个开源的、跨平台的编译器套件,用于将源代码编译成可执行程序。它不仅包含C、C++、Fortran、Objective-C等语言的编译器,还提供了预处理、汇编和链接工具...

    gcc、gcc-c++安装包及依赖包4.4.7-23

    GCC(GNU Compiler Collection)是GNU项目的一部分,是一个开源的、跨平台的编译器套件,用于将源代码编译成可执行程序。它不仅包括C编译器(gcc),还包括C++(g++)、Objective-C、Fortran、Ada和其他语言的编译器...

    gcc10.1.0安装,gcc安装包+依赖包.rar

    GCC(GNU Compiler Collection)是GNU项目的一个重要组成部分,它是一个开源的、跨平台的编译器集合,支持C、C++、Fortran、Objective-C、Ada等编程语言。本教程将详细讲解如何在Linux环境下安装GCC 10.1.0版本,并...

    tdm64-gcc-10.3.0

    **标题:“tdm64-gcc-10.3.0”** 该标题指的是一个针对64位Windows操作系统的GCC(GNU Compiler Collection)版本,具体是10.3.0版。GCC是一套开放源代码的编译器套件,支持多种编程语言,包括C、C++、Objective-C...

Global site tag (gtag.js) - Google Analytics