GCC COMMANDLINE OPTIONS PART 3

commandline session


$cat main.c
#include<stdio.h>

int main(void)
{
   int i;
   printf("n The Geek Stuff [%d]n", i);
   return 0;
}
$gcc -C main.c
$ls -l main
main    main.c  main.i  main.s
$ls -l main.
main.c  main.i  main.s
$ls -l main.
ls: cannot access main.: No such file or directory
$rm main
$rm a.out
$gcc -C main.c
$ls a.out
a.out
$./a.out

 The Geek Stuff [0]
$

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s