HomeОбразованиеRelated VideosMore From: Chris Gregg

Compiling C programs with gcc

8 ratings | 1370 views
In cs107, we will primarily be using Makefiles to compile our code, but you should know how to use gcc (the GNU Compiler Collection) to compile a C program independently. We will use three primary flags in cs107: -g : embed debugging information into the program so gdb will give us good information. -Og : compile with gdb in mind, so it leaves in variable information and doesn't optimize out too many variables. -std=gnu99 : the flavor of C we will be using for cs107.
Html code for embedding videos on your blog
Text Comments (0)

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.