'C' compiler and machine language - TechRepublic
General discussion
February 19, 2005 at 10:02 AM
samjkd

‘C’ compiler and machine language

by samjkd . Updated 21 years, 4 months ago

it is said that ‘c’ is a machine independent language.but Processors understands only machine level language 0 and 1. different processor have different machine level language. if so will the complier of ‘c’ will be different for different processor i,e when the ‘c’ program runs on a pentium machine the ‘c’ compiler changes (compiles) the ‘c’ code to the pentium machine code if the same ‘c’ program is made to run on athlon processor the compiler converts it to the athlon machine code.

1.Does ‘c’ language has different compiler for different machines?

2.If not then how a single compiler can convert to differnt machine codes?

mail me to samjkd@yahoo.com

This discussion is locked

All Comments