gcc - CS3214 Fall 2011 Exercise 2 Due: Thursday, Sep 8,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS3214 Fall 2011 Exercise 2 Due: Thursday, Sep 8, 2011. 11:59pm (no extensions). What to submit: Submit a single ASCII text file that contains your answers. This exercise is intended to reinforce the content of lecture 2-4. It is recommended you work on this exercise concurrently with project 1. You need to use gcc 4.1.2. This is the compiler installed on the rlogin cluster machines. You must specify the-O switch unless the question asks otherwise. The command gcc is a compiler driver. When run with the flag -v, it shows which programs it is actually executing. Invoke gcc with the flag -v on some test files and observe the output, then answer the following questions. 1. Running gcc. (a) Which individual programs does gcc start when asked to compile and link a C program? Provide the basenames of the executables (see basename(1) ). (b) If gcc is given multiple files that are part of the same application, e.g. gcc a.c b.c , then how often will it invoke the compiler, assembler, and linker? (Your, then how often will it invoke the compiler, assembler, and linker?...
View Full Document

This note was uploaded on 12/31/2011 for the course CS 3214 taught by Professor Staff during the Fall '11 term at Virginia Tech.

Page1 / 2

gcc - CS3214 Fall 2011 Exercise 2 Due: Thursday, Sep 8,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online