1_EnvironmentBasics
1_EnvironmentBasics
This compiles the source code in 'hello.c' to machine code and stores it in an executable file
'hello'.
The command line option -Wall turns on all the most commonly-used compiler warnings, it is
recommended that you always use this option.
You can check that the file hello is created by displaying the list of all the files and
subdirectories in the current directory in the terminal itself, using the ls command.
If you compile with -c command line option (also called flag), and if you don’t use the -o flag, the
name of the output file is [name of your file].o by default. In the following function, the name of
the output files will be main.o and hello_function.o respectively.
If you specify neither -c nor -o then the output file will be a.out by default.