Click here to Skip to main content
15,884,628 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
As i understand every program in the world is based on bytes.
I thought it is possible to develop any type of application in binary.
Binary stays same on any operation system.

So, the question:
Can i develop a powerful app using binary programming and run it on any operation system?
Apps like Paint or even big games.

Possible?
Posted
Comments
Arjsrya 2-Jan-15 4:15am    
Why do you want to develop using Binary Programming?It's time consuming.
Ask following question to yourself

1.How does it work in different architecture or differnt hardware?
2.Do you develop user interface or GUI library from scratch?

Richard MacCutchan 2-Jan-15 4:41am    
If you really want to learn about computers and programming, then your time would be better spent reading some books, rather than posting questions like this.
Ziya1995 2-Jan-15 4:50am    
I got all the answers i needed for (Solution 1).
Thanks.

1 solution

Yes - and No.

Yes, you can develop a very large program purely in binary - it's how we started in this game and the first operating systems and everything else were written that way.
But...it's slow. Very slow. That's why one of the first things written in binary was a basic assembler, to translate "readable" machine code instructions
LD      A,(HL)
into the binary equivalent teh processor understood:
01111110
This was a lot quicker! But...still a lot slower than modern languages - it takes 1/10th the time to code in assembler than it does in binary, but 1/100th the time to code in C# than assembler.
So any "large project" you try to code in binary is going to take a significant amount of time.

The "and No" part is that it won't run on "any operation system" anyway, an executable program for Windows won't work on Android, even if it running on the same hardware.
And that leads us to the really big one: different hardware interprets binary values differently, so what works on your PC processor won't work on a first generation PC, or on an iPhone, or a Tablet, or...

So the real answer is "No". this won't work, and even if you restrict yourself to a single defined platform it's not really a practical idea!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900