Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 521 Bytes

README.md

File metadata and controls

42 lines (27 loc) · 521 Bytes

Practice for GCC

1. Introduction

This repository is for practicing GCC.

2. How to compile

1. Single file

gcc single.c

Will generate a.out file. a.out is the default name of output file. To run the file, type:

./a.out

Explore files

file a.out

2. Multiple files

gcc -c extern.c
gcc -c main.c
gcc -o main main.o extern.o

Will generate main file. To run the file, type:

./main

-o option is used to specify the output file name.