Is it possible to program in binary?

后端 未结 6 1496
你的背包
你的背包 2020-12-13 02:10

The title really says it all. A friend of mine told me he knows someone who can program in binary. I\'ve never heard of someone programming in binary and a few quick Google

6条回答
  •  情书的邮戳
    2020-12-13 02:29

    Of course. It's more commonly called machine code. It's basically assembly language without the mnemonic devices. Someone who knows assembly very well could program in machine code with additional effort, referring to opcode listings (e.g. x86) as needed.

    Would I do it? No. Even assembly is only useful in rare circumstances, and there's no reason (beside demonstrating your skills) to reject the assembler's help.

    Since you asked about hello world, you should check out this article. He shows how he wrote, then optimized, an x86 ELF program to output it. It was originally written in nasm then modified in a hex editor.

提交回复
热议问题