|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Banned
Join Date: Jun 2004
Location: Pakistan
Posts: 909
|
Basics of Computer
I have started this thread for the discussion regarding basics of Computers.
We know that the function of computers is based on digital signals (0 or 1). But what is algorithms? Is algorithm the same as digits or is it something different? What role does algorithm plays in the internal function of a Computer? Lets discuss.................... Have a Nice Day and Wish all of you a Happy New Year. |
|
|
|
|
|
#2 |
|
PCMech: Saving Lives
Join Date: Apr 2004
Location: England, the United Kingdom
Posts: 1,839
|
|
|
|
|
|
|
#3 |
|
Banned
Join Date: Jun 2004
Location: Pakistan
Posts: 909
|
I'll check this site and return with my comments.
Regards, |
|
|
|
|
|
#4 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
I don't mean to get off the question on the floor, but in what field of study, or maybe some member here can tell me how does the computer know to ignore words and what to do with them in programming? Easy example in Visual Basic, a For loop:
For x=0 to 4 Shape(x).FillColor = red Next x How does it know what the heck a for is, nevermind means? Does it store a variable with the present value and then at the end adds/subtracts the interval to the stroed varialbe. How does it know after 1 its 2, and after 2 its 3...? ^fo |
|
|
|
|
|
#5 |
|
Resident AMD enthusiast
Join Date: Jul 2001
Location: Kansas
Posts: 1,445
|
Visual basic is a compiled language, what you code is not the same as what the machine sees.
What the machine uses is called machine code, try studying the basics of assembly language to better understant machine code. Assembly language consists of stuff like "MOV AX,5h". That little line of code moves the value 5h (h for hex) into the register AX. By itself, that code is useless. There are other commands in assembly that allow for addition, subtraction, multiplicatinand division, and not a whole lot more. Assemlby is close to machine language, but machine language is far more cryptic and not human readable. The ability to count is built into the CPU's circuitry. Understanding a for loop requires several lines of machine code. Also, most compilers add extra stuff that isn't necessary. Assembly code is the longest way to write a program (you get to control everything but the end result will be more optomised. BUT, I'd recomend you stick to visual basic, I myself like C, but anything (except machine code) will be easier to code than assembly. ![]() L J
__________________
Main: Gigabyte GA-770T USB3 - Phenom II 840 - 4GB DDR3 - Radeon 5750 1GB HTPC: MSI K9N6PGM2-V2 - Athlon II 250 - 4GB DDR2 - Radeon 5670 512MB HTPC: Zotac GeForce 6100E-E - Athlon X2 5800+ - 4GB DDR2 "Play a Windows CD backwards and you'll hear satanic voices, thats nothing, play it forwards and it installs Windows." |
|
|
|
|
|
#6 |
|
Member (9 bit)
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
|
Thank you Colonel Sanders, that was just what I was looking for.
^fo |
|
|
|
|
|
#7 |
|
Forum Administrator
Staff
Premium Member
Join Date: May 2000
Location: Joplin MO
Posts: 36,460
|
Coding in assembly produces the most efficient programs. Just ask Steve Gibson (grc.com) - and look at some of his work. You really have to be a geek to be able to do this, though - he's been doing this stuff for many years.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|