How do you compile c files with clang into a binary format?
Generally, Linux commands aren't needlessly verbose - clang
doesn't necessarily output anything to the terminal if the command succeeds. In the case of
clang exampledebugging.c
it should simply have created a binary executable with the default name a.out
that you can execute using ./a.out
. If you want the output file to be named differently, use the -o
option:
clang exampledebugging.c -o exampledebugging
The GNU compilers gcc
and g++
behave the same.