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.
You need to use the which command to locate c compiler binary called gcc. Usually, it is installed in /usr/bin directory.
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.
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.
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.
If you want to run it on Windows, cygwin is a good way to do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With