Skip to content

tree-s-computer/compiler-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages