Hurricanes Wilma Katrina And Rita Force Businesses To Rethink Computer
Buying the Perfect Computer The FIRST Time
Computer Straining Your Eyes Here s How to Prevent it
Intel Vs AMD Computer Chips
How To Stop The 1 Cause Of Computer Slow Downs And Crashes
Computer Software Genres That Help Students Think
Did You Ever Want to Completely Erase Everything on Your Computer
How Protected are You Safeguard Your Small Business from Computer Viruses
Speed Up Your Computer Inner cleansing tips for your pc
Tips For the Late Blooming Computer User
Detecting and Eliminating Computer Viruses at the Gateway
D BUST Your Computer Part 4 c
Spyware Remover Protect Your Computer from Spyware
Spyware The Enemy To You And Your Computer
Computer War Games How To Estimate Decisions Made By C C Trainees
|
What Is Computer Programming Anyway?
Computer programming in plain language, is giving instructions to a computer to do something. Technically it is actually giving instructions to the microprocessor - the brain of a computer.
If the instructions are only for the microprocessor, why a computer is so complicated with numerous types of hardware accessories?
All the other hardware are to support the function of feeding the instructions to the microprocessor, and conveying the result from the microprocessor to its user - which can be a human or another computer or hardware.
Every time you want a computer to do something you have to give the instructions. Luckily people are smart enough to figure out that since we might want the computer to repeat the same process over and over again, we better store the instructions into a permanent storage - hard disk, CD, flash memory etc.
The stored instructions are called COMPUTER PROGRAM or computer software and the act of arranging the instructions is called COMPUTER PROGRAMMING and the person that is responsible to arrange the instructions is called .....COMPUTER PROGRAMMER ...do you see the pattern here?
On the lowest level, a microprocessor only understands a limited set of instructions. To a microprocessor the instruction sets and data are read in "binary" form.
Binary means 2 states - such as in on and off, high and low, left and right. To make it easier mathematically, binary normally is represented by 1 and 0. Electrically, 1 represents high voltage and 0 represents low voltage.
On the hard disk, program instructions look just like a stream of 1s and 0s. But a microprocessor reads in the stream one chunk at a time. Among normal chunk sizes are 8, 16, and 32. Chunk size is normally referred to as instruction size.
One binary data (that can be a 1 or a 0) is called a "bit". For example a data "1001" is a 4 bit data. Where first bit is 1, second bit is 0, third bit is another 0 and the fourth bit is 1.
Bit is the computer terminology for "chunk".
How instructions can be represented by bits?
One bit data can only represent 1 out of 2 possible states - either 1 or 0. Which in real world can be used to represent things such as on or off, high or low, black or white - any 2 states condition?
If we increase the instruction size to 2 bits, then we can represent 4 instructions - 00, or 01, or 10 or 11. If we increase the size to 3 bits then we can represent 8 possible instructions - 000, 001, 010, 011, 100, 101, 110 and 111
If you notice the trend from the above examples is that maximum possible number of instructions is the power of 2 of the bit size. That is 2 bits can represent maximum of 2^2 (which is 4) instructions, and 3 bits can represent maximum of 2^3 (which is 2x2x2 = 8) instructions.
So 8 bits data can represent maximum of 2^8 (2x2x2x2x2x2x2x2 = 256) instructions (or states) and 32 bits data can represent 2^32 (4,294,967,296) instructions.
You can actually read a program stream contents using certain editor - normally called HEX editor. Using these special text editors you can look at the instructions in binary, hexadecimal, octal, and decimal format.
I'll cover the details of what each of the above format (hex, oct and dec) means in other article.
Permission is granted for this article to forward, reprint or distribute, use for ezine, website, offer as free bonus or part of a product for sales as long as no changes are made and the byline, copyright and the resource box is included.
About the Author
Resource Box: Copyright © Shamsul Anuar of Bouncingcube.com newsletter. To learn more about computer programming and software development visit www.bouncingcube.com and subscribe to the free newsletter
Shamsul
More Articles
Keep Your Computer Running Cool - Jason Bauder Keeping your Computer Cool
One of the biggest problems facing newer desk top computers and
laptops is keeping your computer cool. New chips in both desk
tops and laptops run at incredibly high temperatures. If your
computer is not ventilated...
Is your Computer a friend or a Dirty Name? - Larry Mc Lemore I am sitting here laughing and wishing I could hear the answers that each of you may have for the above question. Sometimes trying to get a computer to do what it is supposed to do, is like trying to nail jello to a tree. You might ask, why would...
Broadcasting Mp3 Audio Via Computer, The Looney Tune World Of Podcasting - Sunny Hills Podcasting Is A New Form Of Fun Stuff
To Do On The Computer.
The Ipod Was Made For Music Downloads,
But The Reality Is That It Has Created
A Launch Of Mini Shows,
That Are Uncut And Cheap To Produce.
Every Event You Can Imagine Is A...
Computer Rental: Worth Your Money? - Sandy Baker Is computer rental worth the money? Depending on the type of computer that you have a need for as well as the expenses that you plan to save, computer rental may or may not be the right road for you to go down. One thing is quite certain. That is,...
Computer In The Shop? What Do You Do Now? - Janice D Byer MVA Have you ever had one of those days when you just feel like something is missing? . something just doesn't feel right. like you should be doing something but you can't remember what? Well, I had one of those days recently. my computer was in the...
How To Recognize If Your Computer Has A Virus Or Trojan On It. - Eric Koshinsky You have permission to publish this article electronically or in print, free of charge, as long as the bylines are included and all links are made active. A courtesy copy of your publication would be appreciated: published@antivirus-report.com How...
Use Your Computer For Your Entertainment Needs - Robert Dorrance By using your computer today you can find a lot of different music and movie programs. From downloading music and movies directly from the internet to buying subscriptions, joining clubs, and even renting, all from the comfort of your home. ...
The Flexibility of Roll-Top Computer Desks - Ken Marlborough The roll top computer desk is a new development that is gaining
acceptance because of its unique design and usefulness. The
rolling top on these computer desks can cover all the computer
peripherals from the monitor, keyboard and the CPU to...
The Single Least Expensive Yet Most Valuable Way to Upgrade Your Computer's Performance - Dennis Eppestine Is your computer not what it used to be? I bet when you bought it, it was top of the line, wasn't it? Well, I can almost guarantee it's not anymore! At the current rate of development, it probably lacked the most modern advances by the time you got...
The Trials and Tribulations Of Learning A New Computer Skill - Georgie Farmer It all started several years ago when I walked out on a well-paid job of 11 years. I needed to get another job fairly quickly. My monthly mortgage repayments were pretty hefty. Something I hadn't thought about during my dramatic exit. I eagerly...
|