473,385 Members | 1,798 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,385 software developers and data experts.

c compilation

how and where does the c compilation takes place?

Mar 9 '07 #1
4 2082
ra*********@gmail.com wrote:
how and where does the c compilation takes place?
Whenever the compiler is invoked and wherever it is present.

Mar 10 '07 #2
<ra*********@gmail.comwrote in message
how and where does the c compilation takes place?
If you are going to post homework questions at least put them into your own
words. No one talks like that outside of an examination paper.

You need to understnad the difference between machine language, assembly
language, and high-level languages such as C, Java, or Basic.

Then understand the difference between an interpreted and a compiled
language. To help you, an interpreter is a program that accepts the source
code to a high level language, and executes the instructions in it. It
doesn't create another program, and you cannot run the high level language
without the interpreter.

C works on an entirely different principle.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
Mar 10 '07 #3
Malcolm McLean wrote:
<ra*********@gmail.comwrote in message
how and where does the c compilation takes place?
<snip>
Then understand the difference between an interpreted and a compiled
language. To help you, an interpreter is a program that accepts the source
code to a high level language, and executes the instructions in it.
No. The JVM is a counterexample.
It doesn't create another program, [ ... ]
It might in memory. Again, the JVM compiles portions of it's input
into native machine code.
and you cannot run the high level language
without the interpreter.
Lisp-machines, and IIRC, there was an experimental CPU that directly
executed Java bytecode.
C works on an entirely different principle.
Yes, but you've not addressed OP's question at all.

Mar 10 '07 #4
On 10 Mar 2007 01:34:48 -0800, "santosh" <sa*********@gmail.com>
wrote:
Malcolm McLean wrote:
<ra*********@gmail.comwrote in message
how and where does the c compilation takes place?
<snip>
and you cannot run the high level language
without the interpreter.

Lisp-machines, and IIRC, there was an experimental CPU that directly
executed Java bytecode.
Although Java bytecode is not "the high level language". Similarly
there was a machine that hardware (I think actually firmware) executed
the P-code used by UCSD Pascal (and I believe other front-ends).

Strictly speaking LISP machines executed a parsed (and in particular
intern'ed) form of the source, but I think most people would count
that as a non-semantically-significant difference.

And the IBM 5100 ran in firmware either BASIC (I suspect, similarly
preparsed) or APL (for which parsing would be nearly trivial).
C works on an entirely different principle.

Yes, but you've not addressed OP's question at all.
I suspect intentionally not, since he assessed it as homework.

Apr 15 '07 #5

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

Similar topics

4
by: konf | last post by:
Hallo, I tried to compile PGSQL 7.4 and I got error (durring make): ar: command not found What is it? Whe I can found it? I have: $ uname -a SunOS ... 5.8 Generic_108528-03 sun4u sparc...
10
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and...
2
by: FireStarter | last post by:
Guys, in the code that follows, why does the method F() still compile, even if DBG is undefined? Inside method G(), the code inside <#if DBG> does not compile (notice that I can write whatever I...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
3
by: ktrvnbq02 | last post by:
Hi, We have an ASP.NET application built in Release mode via Visual Studio. All of the C# code is in the code-behind files (i.e. *.aspx.cs files) and there is no C# in the *.aspx files...
6
by: thomson | last post by:
Hi all, I have compiled by .net web applicaion in my local machine , and a dll has been created on the bin Directory, And i have copied the entire application using xcopy deployment to a...
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...
6
by: alban | last post by:
Hello I have got some problems of compilation on a AIX IBM, I use the XLC compilator (And I can't install another one). I try to compile code Pro*c ".pc" (oracle), I need do a pre-compilation...
4
by: Bob | last post by:
Hi, In VS2003 conditional compilation constants and their state could be defined at project level. I was using this to control what features where offered by various builds. i.e....
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.