Click to See Complete Forum and Search --> : i need info


ammarrana
May 30th, 2003, 11:47 PM
hi
My name is ammmar rana ,i have two question plz give answer of them.
1) Will the same c++ compiler will run on different machine(intel and apple)?
2)What does term paltform-independent means,is it os or machine
architecture?

Brad Jones
June 10th, 2003, 12:53 PM
In general, the same compiler will not work on the Apple's operating system and Windows. There are companies that make compilers that will work on both, but it is usually separate versions.

Platform generally refers to the operating system; however, it can also mean a combination of the operating system and the hardware.

If used to describe source code, then platform independent can mean that the same source code file can be compiled and ran on mulitple machines and/or operating systems. For example, platform independet programs can be written using C, C++, and Java. You will, however, have to compile and create the executable for each platform.