二进制开发。 [英] Development in binary.

查看:152
本文介绍了二进制开发。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,世界上的每个程序都基于字节。

我认为可以用二进制开发任何类型的应用程序。

二进制保持不变任何操作系统。



所以,问题:

我可以使用二进制编程开发一个功能强大的应用程序并在任何操作系统上运行吗?

像Paint或者甚至是大型游戏的应用程序。



可能吗?

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?

推荐答案

是 - 并且没有。



是的,您可以完全用二进制开发一个非常大的程序 - 这就是我们在这个游戏中开始的方式以及第一个操作系统和其他一切是那样写的。

但是......它很慢。非常慢。这就是为什么用二进制编写的第一件东西之一是基本的汇编程序,翻译可读的机器代码指令

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

这要快得多!但是......仍然比现代语言慢很多 - 在汇编程序中编码所需的时间比在二进制文件中慢十分之一,但在C#中编码的时间是汇编程序的1/100。

所以你尝试用二进制代码编写的任何大项目都需要花费大量的时间。



和否部分是它不会无论如何,在任何操作系统上运行,Windows的可执行程序将无法在Android上运行,即使它在相同的硬件上运行。

这导致我们真正重大:不同的硬件以不同的方式解释二进制值,因此在您的PC处理器上工作的东西不适用于第一代PC,iPhone或平板电脑,或者......



所以真正的答案是不。这是行不通的,即使你把自己局限于一个定义的平台,也不是一个真正的想法!

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!


这篇关于二进制开发。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆