Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 9th, 2006, 1:18 AM   #1
Werewolf
Newbie
 
Join Date: Apr 2006
Posts: 1
Rep Power: 0 Werewolf is on a distinguished road
Binary and Hex

I'm so for posting this most likely in the wrong forum, but I am new, and I'll try not to do it again.

Well, we all know there is interpreted and compiled. Compiled is converted into computer code. I want to know, what is this computer code (x86 specifically I guess), because it just would help me understand a lot more things.
Werewolf is offline   Reply With Quote
Old Apr 9th, 2006, 3:11 AM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Machine code (the 1's and 0's) is a binary ( :eek: ) encoding for the instructions to give to the processing unit. Different PUs have different instruction sets, or architectures, which is why we have different assembly languages (i.e. x86, MIPS, PPC, etc...). Assembly languages are easily converted from what we can read to the actual machine code by simply taking the encoding for the operation and the registers involved, and putting it together into a n-bit value (where n is the number of bits supported by the PU, i.e. 32-bit or 64-bit) and then saving that to instructional memory. The PU reads this encoded instruction and carries out the operations specified.
Jimbo is offline   Reply With Quote
Old Apr 9th, 2006, 8:57 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
Well, we all know there is interpreted and compiled. Compiled is converted into computer code.
No need holding this erroneous opinion. Interpreted is converted into computer code, also. How else could the machine use it? It's merely a distiction as to the when, where, and how the conversion is accomplished.

Jim's answer is good. Understanding assembly language IS a help if you need to work under the hood or understand processes that are linked to the architecture and not the solution to a problem, per se. At sufficiently useful levels of abstraction knowledge of the underlying paradigm is not necessary.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC