473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

compilers

Hello,
I have a basic question about compilers. What are the different types
of compilers, are they written by different companies, why there are
different names of compilers, what is the purpose, I want to know about
them. Are interpreters of C available, and if yes, how can I get them.
Madhura

Feb 14 '06 #1
12 2421
In article <11**********************@g43g2000cwa.googlegroups .com>,
madhura <ma**********@yahoo.com> wrote:
I have a basic question about compilers. What are the different types
of compilers,
K&R compliant, C89 compliant, C94 compliant, C99 compliant,
and Broken.
are they written by different companies,
A number of different companies write C compilers, and the same company
may have several different C compilers out (which may fall into one
or more of the above categories.) There are also a lot of compilers
written by entities other than companies, some more organized than
others.
why there are different names of compilers,
Why are there different names of anything?? Why is your mother's
name not the same as your father's name or your name, and why
do your neighbours have different names than those?
what is the purpose, I want to know about
them. Are interpreters of C available, and if yes, how can I get them.


There is at least 1 C interpreter available, and I would imagine
that you could find out more about it in the C FAQ which is regularily
posted and cited in this newsgroup .
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
Feb 14 '06 #2
madhura wrote:
Hello,
I have a basic question about compilers. What are the different types
of compilers, are they written by different companies, why there are
different names of compilers, what is the purpose, I want to know about
them. Are interpreters of C available, and if yes, how can I get them.
Madhura

Different compilers are written for different platforms and deployment
targets.

If you have specific questions about your environment, post it on a
group dedicated to that environment.

Why would you want an interpretor for a compiled language?

--
Ian Collins.
Feb 14 '06 #3

"Ian Collins" <ia******@hotmail.com> wrote

Why would you want an interpretor for a compiled language?

Because an interpreter can be easier to write than a compiler, it may also
be easier to detect certain problems with programs, like memory leaks.
It also enables you to run the program on any platform with a compiler for
the interpreter. With C this isn't much of a practical advantage, but if you
have your own pet language you want to become the next hot technology, it
might help to have an interpreter written in an inferior but more common
language.
Feb 14 '06 #4
Ian Collins wrote:
madhura wrote:
them. Are interpreters of C available, and if yes, how can I get them.
Madhura


Why would you want an interpretor for a compiled language?


(Sorry if this question has an obvious answer); There are anything in
the C standard that mades mandatory that C was a compiled language?

Feb 14 '06 #5
On 2006-02-14, tmp123 <tm****@menta.net> wrote:
Ian Collins wrote:
madhura wrote:
> them. Are interpreters of C available, and if yes, how can I get them.
> Madhura


Why would you want an interpretor for a compiled language?


(Sorry if this question has an obvious answer); There are anything in
the C standard that mades mandatory that C was a compiled language?


There's something about the paradigm of "translation" that tends to make
it a better fit, but nothing absolute
Feb 14 '06 #6


tmp123 wrote On 02/14/06 17:28,:
Ian Collins wrote:
madhura wrote:
them. Are interpreters of C available, and if yes, how can I get them.
Madhura


Why would you want an interpretor for a compiled language?

(Sorry if this question has an obvious answer); There are anything in
the C standard that mades mandatory that C was a compiled language?


The Standard requires (5.1.1.1) that it be possible
to "translate" isolated segments of C source at different
times, to retain the results of "translation" in files
and libraries, and to "link" those results into executable
(or perhaps executING) programs still later. I think we
can take "translate" to be a synonym for "compile," so in
that sense C is indeed a "compiled language."

However, that doesn't mean C can't also be interpreted!
The Standard does not describe the nature of the output of
translation, nor the mechanism that causes the program to
"do stuff" at run-time. A compiler that emits code for an
interpreter to execute isn't ruled out. In fact, it's done
all the time, from one viewpoint anyhow: If a program is
running on a microcoded machine, is it running "natively"
or is it being "interpreted" by the microcode?

--
Er*********@sun.com

Feb 14 '06 #7
Eric Sosman <Er*********@sun.com> writes:
[snip]
However, that doesn't mean C can't also be interpreted!
The Standard does not describe the nature of the output of
translation, nor the mechanism that causes the program to
"do stuff" at run-time. A compiler that emits code for an
interpreter to execute isn't ruled out. In fact, it's done
all the time, from one viewpoint anyhow: If a program is
running on a microcoded machine, is it running "natively"
or is it being "interpreted" by the microcode?


Sure, but a compiler that generates some form of code that's then
interpreted is a compiler -- and the interpreter itself isn't a C
interpreter, it's an interpreter for the generated code (P-code,
J-code, whatever).

It would be theoretically possible to create a true C interpreter, one
that would interpret C source code without translating it to some
lower-level form. It would be easier to translate the C code on the
fly to some internal form that's then interpreted (similar to the way
Perl works).

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 14 '06 #8
"Ian Collins" wrote:
Why would you want an interpretor for a compiled language?


Some people consider that a painless way to learn the syntax of a new
language. The instant and effortless feedback has a lot of appeal. Once
you learn it, you switch to using a compiler.
Feb 15 '06 #9
madhura wrote:
Hello,
I have a basic question about compilers. What are the different types
of compilers, are they written by different companies, why there are
different names of compilers, what is the purpose, I want to know about
them. Are interpreters of C available, and if yes, how can I get them.
Madhura

The Herb Shlit C reference has the source code for a C Interpreter in
the back.
Feb 15 '06 #10
Neil <Ne*******@worldnet.att.net> writes:
madhura wrote:
Hello,
I have a basic question about compilers. What are the different types
of compilers, are they written by different companies, why there are
different names of compilers, what is the purpose, I want to know about
them. Are interpreters of C available, and if yes, how can I get them.
Madhura

The Herb Shlit C reference has the source code for a C Interpreter
in the back.


That's Herb Schildt, author of some *very bad* books about C.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 15 '06 #11
Keith Thompson wrote:
Neil <Ne*******@worldnet.att.net> writes:

The Herb Shlit C reference has the source code for a C Interpreter
in the back.

That's Herb Schildt, author of some *very bad* books about C.


Both are misspellings of "Herb BullSchildt."
Feb 15 '06 #12
Martin Ambuhl wrote:
Keith Thompson wrote:
Neil <Ne*******@worldnet.att.net> writes:

The Herb Shlit C reference has the source code for a C Interpreter
in the back.

That's Herb Schildt, author of some *very bad* books about C.


Both are misspellings of "Herb BullSchildt."


Before the Internet It was all I had, and all I could find.
I helped at the time. Did do a lot of DOS, so I would not have noticed
the ANSI violations.
Feb 17 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bill Davidson | last post by:
Hi there, Please forgive me for posting this article on multiple groups. Being new in the newsgroups, I was not sure which group would have been appropriate for my question. Sorry. My...
22
by: bq | last post by:
Hello, Two questions related to floating point support: What C compilers for the wintel (MS Windows + x86) platform are C99 compliant as far as <math.h> and <tgmath.h> are concerned? What...
13
by: Derek | last post by:
As I understand it there is a good amount of link compatibility among C compilers. For example, I can compile main.c with GCC and func.c with Sun One and link the objects using either linker (GNU...
0
by: Chris Stephens | last post by:
Low Cost C Compilers ------------------------------------ HI-TECH Software's C compilers are now available to support the ARM, dsPIC, msp430, 8051, PIC 10 to 17, PIC 18 as well as many other...
3
by: Robert | last post by:
I have a number of web projects converted from 1.1 to 2.0 in VS2005. I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of...
1
by: dbaGrant | last post by:
I have upgraded an asp.net 1.1 application to asp.net 2.0 using the upgrade wizard in VS2005. The web.config file which worked correctly in 1.1 now has an error that will not allow the application...
8
by: pransri2006 | last post by:
Hi guys! I think all of u know about the designing of compilers. Can any body tell me about the designing of the compilers. And also tell me the difference between the compilers and Interpreter...
30
by: albert.neu | last post by:
Hello! What is a good compiler to use? (for MS Windows, for Linux) Any recommendations?? What's the point of having a C99 standard, if different compilers still produce differing results? ...
14
by: shyam.lingegowda | last post by:
Hi all, If I have two c++ programs and I compile that using two different compilers on Unix. Is it possible for these two exe's to communicate with one another. Since the way the exe's are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.