answersLogoWhite

0


Best Answer
C programs can be compiled by any C compiler on any platform. The compiler must support the same or higher C standard that you've coded against and all platform specific code should be separated with conventional platform-dependent precompiler directives to ensure that only the code specific to the target platform is compiled.

In most cases the target platform will be dictated by the platform upon which the compiler is executing, however the same compiler will usually cater for both 32-bit and 64-bit compilations. Your IDE may also provide additional compilers via add-ons and plug-ins that allow compilation for similar architectures, such as games consoles and smart phones. Code for other platforms can often be tested using emulators.
User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What should you use to compile a C program on many different platforms?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you write mainframe program?

Nothing special. Of course before you start, you should know how to compile, link, run and debug your programs, but this goes for every platform.


What command should be given to compile a C program from the command prompt?

You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.


What is the difference between run time and compile time in c?

Compile time errors are detected at the compilation of a program. These are usually syntactical errors. A program cannot be compiled and hence executed if it contains a compile time error. for example, int a b=0; above statement will produce a compile time error as a and b must be separated by a comma(,). Runtime errors are logical errors. They don't affect the compilation of the program but causes a program to produce unwanted output. The program becomes buggy. for example, sum=sum-a[i]; in above statement, no syntactical error is present and hence the program will get executed successfully. But from a logical point of view, sum was supposed to be the addition of array elements. using minus(-) instead of plus(+) will give unwanted or incorrect output.


Is it essential to catch all the exceptions and justify your answer?

Checked exceptions should be caught. Otherwise, compile errors are generated.


What is a semantic program?

I would assume that it is a type program that is not fully functional yet. It would be a program that could derive meaning from a symbol and apply it to different symbol with similar meaning. For example, if the program took in the word cat, then should be able to return pictures, stories, and fact about cats.

Related questions

Can be used the programs in Java compiled under Windows XP with Windows 8.1?

It should work, yes. It really doesn't matter where you compile it - if you compile under Windows XP, you don't compile FOR Windows XP; rather, you compile for the virtual machine, which is compatible in different environments.


How do you write mainframe program?

Nothing special. Of course before you start, you should know how to compile, link, run and debug your programs, but this goes for every platform.


What if your supervisor asks you to compile the credit card receipts What should you do to the receipts?

Your supervisor asks you to compile the credit card receipts. What should you do to the receipts?


What command should be given to compile a C program from the command prompt?

You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.


Difine run time error?

run-time error definition. An error in the execution of a program which occurs at run time, as opposed to a compile-time error. A good programming language should, among other things, aim to replace run-time errors by compile-time errors.


How should one choose a Forex trading firm?

Today the web offers many different trading platforms on which is also possible to trade Forex. Trading platforms should be chosen based on the user preferences. The best method is to try out different demos and see which one is the preferred.


Define compile time polymorphism with short examples?

compiler can decide which form of the object should be invoked during compile time.this type of polymorphism is know as compile time polymorphism


If you want that any wildcard characters in the command line arguments should be appropriately expanded are you required to make any special provision If yes which?

Yes .you have to compile a program liketcc myprog wildargs.obj


What is relocation register?

Relocation Correct starting address when a program should start in the memory. Different jobs will run at different address . When a program is linked , the linker must known at what address the program will begin in memory .


Compile the credit card receipts What should you do to the receipts?

You should keep them and match them with what you bought. After they match up you can throw them away if you wish.


What should you study in college -if the school does not have a pre-med program- if you want to go to medical school?

You should find a different school.


How old should children be for the I Can Read program?

Children does not start reading before the age of 5 or 6. The I Can Read program helps children to learn reading in different steps. You can register to the program on their website.