mahaju
Full Member level 2
Hi
What is the main difference between all the programming languages and compilers anyway? I mean, the only thing the computer understands is machine code, and they all convert high level text into machine level code. Still, each language looks and feels much different than the other (eg, C and BASIC)
Similarly, what does it mean by one compiler being better (or worse) than the other, or more (or less) suited for a particular application? I am not trying to talk about languages and compilers designed for different operating systems (Windows/Linux) or different types of computers (PC/Mobile). I am talking about compilers and languages for the same platform. For example, I can write a C program (hello World for example) and compile in Turbo C or gcc and get the same results (at least I think they are the same, I know there should be some difference even if I haven't noticed it, but that's why I am posting this question).
So what's the difference?
PS: Could you please tell me in brief about various types of compiler optimizations, what they are, what they are good for and not good for and how the C volatile keyword is related to it?
Thanks in advance.
What is the main difference between all the programming languages and compilers anyway? I mean, the only thing the computer understands is machine code, and they all convert high level text into machine level code. Still, each language looks and feels much different than the other (eg, C and BASIC)
Similarly, what does it mean by one compiler being better (or worse) than the other, or more (or less) suited for a particular application? I am not trying to talk about languages and compilers designed for different operating systems (Windows/Linux) or different types of computers (PC/Mobile). I am talking about compilers and languages for the same platform. For example, I can write a C program (hello World for example) and compile in Turbo C or gcc and get the same results (at least I think they are the same, I know there should be some difference even if I haven't noticed it, but that's why I am posting this question).
So what's the difference?
PS: Could you please tell me in brief about various types of compiler optimizations, what they are, what they are good for and not good for and how the C volatile keyword is related to it?
Thanks in advance.