Current location: Hot Scripts Forums » Programming Languages » C/C++ » How does a high level programming language (such as Java, C, C++) work?


How does a high level programming language (such as Java, C, C++) work?

Reply
  #1 (permalink)  
Old 05-12-06, 04:44 PM
sasidhar sasidhar is offline
Newbie Coder
 
Join Date: Apr 2006
Location: India
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
How does a high level programming language (such as Java, C, C++) work?

How does a high level programming language (such as Java, C, C++) work? [How are instructions parsed? What does a compiler do? How does it work? How does the information get translated into bits and bytes that run on a chip in the end? How do these translated instructions get executed on the chip and how is the information compiled back and presented as console output to the user? etc.]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-13-06, 09:19 AM
King Coder King Coder is offline
Community VIP
 
Join Date: Jan 2006
Posts: 703
Thanks: 0
Thanked 0 Times in 0 Posts
I can tell you a little, but the other information is probably very irellevant.

When you click compile, it is not the compiler that runs first. It is the preprocessor. The preprocessor takes everything found at lines beginning with # and inserts the real code for it. For include statements, they are imported directly into the program. Then the compiler runs.
__________________
my site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-18-06, 09:49 PM
twoeyes twoeyes is offline
Newbie Coder
 
Join Date: Jun 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Well I dont really think of C++ as being high level its more low level to me (PHP being high level IMO) since its pretty much as low as anybody goes these days (lower level assembly, etc is just not practical with these new tools)

http://en.wikipedia.org/wiki/Compiler probably explains best.
__________________
there are 10 types of people in the world, those who know binary and those who dont
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Art Nexus seeking PHP programmers TheArtNexus Job Offers & Assistance 5 02-26-08 04:08 AM
Paid work - help me chose a language camt Job Offers & Assistance 1 03-20-06 10:58 PM
Why java? Epix Everything Java 20 03-11-06 12:34 PM
programming tutor sought: Java and Windows 2000 Server usallsys Job Offers & Assistance 0 01-13-06 02:08 PM
Which language Java or Assembler beyercorpuz The Lounge 1 03-22-05 01:59 AM


All times are GMT -5. The time now is 10:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.