I will explain how to install gcc. Install gcc using the apt command. Run with administrator privileges using sudo.
sudo apt install -y gcc
Main uses of gcc
The main use of gcc is to compile C language. You can compile C source files to create object files.
An object file is a machine language file that contains processing for one or more C language files.
gcc also includes a linker. The linker feature allows you to combine object files to create executables, static libraries, and shared libraries.
C ++ compiler g ++
C ++ may be used in Perl's XS module, so be sure to install g ++, which is a C ++ compiler.