Why must a program be decompiled before viewing its code? If the computer is running the program, shouldn’t we be able to see what it’s running?

899 views

Why must a program be decompiled before viewing its code? If the computer is running the program, shouldn’t we be able to see what it’s running?

In: Technology

8 Answers

Anonymous 0 Comments

0110100001100101011011000110110001101111

Can you read that?

How about this?

01101000 01100101 01101100 01101100 01101111

Surely you can read this one:

h e l l o

Computers operate using 1s and 0s, carefully arranged to tell the computer what to do and in what order.

Most humans can’t easily read the binary directly, so we write code in a human-understandable programming language, then compile it into something the computer understands.

For another example, A car engine runs by injecting fuel into the cylinders, firing spark plugs, and opening/closing valves in a specific order and with specific timing. A human could do all those tasks, but not nearly fast enough or consistent enough.

Instead, the human just pushes down on the accelerator pedal, and lets the car handle all the working details.

A mechanic might better understand the small details, and can sue that information when troubleshooting, but a driver just needs to know the big picture inputs: press the gas to go, release the gas and press the brake to slow down. Make those controls consistent, and an experienced driver can drive almost any car without worrying about what the engine is doing.

You are viewing 1 out of 8 answers, click here to view all answers.