Showing posts with label gcc. Show all posts
Showing posts with label gcc. Show all posts

Tuesday, November 07, 2006

New digs: g++

Well, I haven't done much with C for some time now, so I guess I should be getting back to it. I have started again with base conversion now. I have experimented with an example interest-rate program which uses loops to print the interest on a sum over a period of time according to simple interest, or I=prt. I am now writing a base-conversion program and also plan to write a program for finding the viscosity of a fluid based on the fluid's shear stress and shear rate or velocity gradient as in a laminar shear experiment. Simple for now, but more will come.

Sunday, November 05, 2006

Programming: gcc

Three reasons to install Linux or Unix on a PC: first, hear no Microsoft, smell no Microsoft, see no Microsoft; second, GNOME; third, gcc. Gcc is the GNU Compiler Collection, a universal Unix compiler that can compile just about everything from C to Fortran to Ada to Assembly to 00010111010100. It ships with most, if not all, Unix and Linux distros. I have been using to learn C, which is much easier under Unix. But you can still use it for many other things. In fact, I can compile machine-independent code with it. Later I will tell you more about personal experiences and programs I have compiled with gcc and g++.