Click here to Skip to main content
15,895,256 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch17-Mar-21 2:50
mvahoney the codewitch17-Mar-21 2:50 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Richard MacCutchan17-Mar-21 2:48
mveRichard MacCutchan17-Mar-21 2:48 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch17-Mar-21 2:50
mvahoney the codewitch17-Mar-21 2:50 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
11917640 Member 17-Mar-21 3:55
11917640 Member 17-Mar-21 3:55 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch17-Mar-21 4:10
mvahoney the codewitch17-Mar-21 4:10 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
11917640 Member 17-Mar-21 5:05
11917640 Member 17-Mar-21 5:05 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch17-Mar-21 6:10
mvahoney the codewitch17-Mar-21 6:10 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Stuart Dootson18-Mar-21 0:17
professionalStuart Dootson18-Mar-21 0:17 
honey the codewitch wrote:
cl.exe is a command line control tool. It is not the compiler.


gcc is no different - and never has been. When you run gcc with the --verbose flag, it shows that compiling a C file to an executable runs the following:
/usr/lib/gcc/x86_64-linux-gnu/8/cc1 -quiet -v -imultiarch x86_64-linux-gnu a.c -quiet -dumpbase a.c -mtune=generic -march=x86-64 -auxbase a -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccJEEoFg.s

This compiles the C to x86_64 assembly.
as -v --64 -o /tmp/ccAlIhSN.o /tmp/ccJEEoFg.s

Produces object code from assembly.
/usr/lib/gcc/x86_64-linux-gnu/8/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper -plugin-opt=-fresolution=/tmp/ccaY47gl.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o a /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/8/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/8 -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/8/../../.. /tmp/ccAlIhSN.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/crtn.o

collect2 is what does the linking.

cl.exe is much the same (although I think the compilation functionality is in DLLs, not separate EXEs - Windows doesn't have fast process creation with fork/exec, after all).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch18-Mar-21 2:09
mvahoney the codewitch18-Mar-21 2:09 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Stuart Dootson18-Mar-21 2:52
professionalStuart Dootson18-Mar-21 2:52 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
SeattleC++18-Mar-21 5:49
SeattleC++18-Mar-21 5:49 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch18-Mar-21 6:24
mvahoney the codewitch18-Mar-21 6:24 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
SeattleC++18-Mar-21 8:36
SeattleC++18-Mar-21 8:36 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch18-Mar-21 9:13
mvahoney the codewitch18-Mar-21 9:13 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Richard FR22-Mar-21 9:53
Richard FR22-Mar-21 9:53 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Richard MacCutchan22-Mar-21 22:51
mveRichard MacCutchan22-Mar-21 22:51 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Dar Brett17-Mar-21 2:22
Dar Brett17-Mar-21 2:22 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch17-Mar-21 2:29
mvahoney the codewitch17-Mar-21 2:29 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
giulicard17-Mar-21 22:40
giulicard17-Mar-21 22:40 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
giulicard17-Mar-21 23:26
giulicard17-Mar-21 23:26 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
giulicard17-Mar-21 22:50
giulicard17-Mar-21 22:50 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Stuart Dootson18-Mar-21 0:22
professionalStuart Dootson18-Mar-21 0:22 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch18-Mar-21 2:04
mvahoney the codewitch18-Mar-21 2:04 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
Stuart Dootson18-Mar-21 2:49
professionalStuart Dootson18-Mar-21 2:49 
GeneralRe: Microsoft Visual C++ is the Internet Explorer of C++ compilers. Pin
honey the codewitch18-Mar-21 2:53
mvahoney the codewitch18-Mar-21 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.