Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where can i get the GCC binary? [closed]

Tags:

gcc

I want to get the latest GCC linux binary, a simple link->download. Does anyone know of any such place? I'm having a hard time finding one.

Of course there is the possibility of downloading the source code and compiling it - but the instructions in http://gcc.gnu.org/install/download.html are both long and gruesome so it would have been nice to simply get the binary, if i can.

EDIT: i am not an administrator on my computer, so i can't use apt-get install.

like image 819
dan12345 Avatar asked Jan 17 '12 10:01

dan12345


People also ask

Where are gcc binaries?

You need to use the which command to locate c compiler binary called gcc. Usually, it is installed in /usr/bin directory.

How do I generate binary in gcc?

So when compiling with gcc if you pass -Wl,--oformat=binary you will generate a binary file instead of the elf format. Where --oformat=binary tells ld to generate a binary file. This removes the need to objcopy separately.

Can you use gcc on Windows?

GCC is portable and run in many operating platforms. GCC (and GNU Toolchain) is currently available on all Unixes. They are also ported to Windows (by Cygwin, MinGW and MinGW-W64). GCC is also a cross-compiler, for producing executables on different platform.

How does gcc compiler work?

After the file is preprocessed, gcc moves it to the compiler. The compiler turns each line in the preprocessed file into assembly language, which are instructions in English mnemonics that have strong one-to-one correspondence to the machine code that computers can read.


1 Answers

If you want to run it on Windows, cygwin is a good way to do it.

like image 173
duffymo Avatar answered Sep 29 '22 07:09

duffymo