|
programming -
Visual C++ 5
|
|
Written by Administrator
|
|
Sunday, 08 February 2009 13:09 |
The Golden Rule of Compiler-Writers: Performance Is (almost) Everything. Performance is almost everything in a compiler. There are other concerns: meaningful error messages, good documentation, and product support. These factors pale in comparison with the importance users place on raw speed. |
|
Read more...
|
|
|
programming -
Visual C++ 5
|
|
Written by Administrator
|
|
Sunday, 08 February 2009 13:06 |
The story of C begins, paradoxically, with a failure. In 1969 the great Multics project—a joint venture between General Electric, MIT, and Bell Laboratories to build an operating system—was clearly in trouble. It was not only failing to deliver the promised fast and convenient on-line system, it was failing to deliver anything usable at all. |
|
Read more...
|
|
programming -
Visual C++ 5
|
|
Written by Administrator
|
|
Sunday, 08 February 2009 13:03 |
|
When will the time_t's wrap around? Write a program to find out. 1. Look at the definition of time_t. This is in file /usr/include/time.h. 2. Code a program to place the highest value into a variable of type time_t, then pass it to ctime() to convert it into an ASCII string. Print the string. Note that ctime has nothing to do with the language C, it just means "convert time." |
|
Read more...
|
|
programming -
Visual C++ 5
|
|
Written by Administrator
|
|
Sunday, 08 February 2009 12:57 |
Some aspects of C and UNIX are occasionally quite lighthearted. There's nothing wrong with wellplaced whimsy. The IBM/Motorola/Apple PowerPC architecture has an E.I.E.I.O. instruction [1] that stands for "Enforce In-order Execution of I/O". In a similar spirit, there is a UNIX command, tunefs |
|
Read more...
|
|
programming -
Visual C++ 5
|
|
Written by Administrator
|
|
Sunday, 08 February 2009 12:54 |
|
One convention that we have is to use the names of fruits and vegetables for variables (only in small code fragments, not in any real program, of course): char pear[40]; double peach; int mango = 13; long melon = 2001;
|
|
Read more...
|
|
|
|
|
<< Start < Prev 1 2 3 4 5 6 7 Next > End >>
|
|
Page 1 of 7 |