Question: For this exercise, you're going to be comparing system calls and the library routines you're probably more accustomed to using. I've written a short program

For this exercise, you're going to be comparing system calls and the library routines you're probably more
accustomed to using. I've written a short program for you, writeLibc.c. You'll find it on the course homepage in
Moodle. This program uses the C standard library to create an output file, output.txt. It uses fputc() to write
more than 1,000,000 characters to the file, one character at a time, rewinding to the start of the file periodically,
so it doesn't get too large.
Compile this program and time its execution on one of the EOS linux machines. The following commands
should do the job:
$ gcc -Wall -std=c99 writeLibc.c -o writeLibc
$ time ./writeLibc
Once you're done with this program, delete the output file it created. This will help you make sure you don't
make mistakes on the next part:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!