Can You Code Software Using Binary Alone
“I can code any software using bin(binary goes here)”
Summary
It is technically possible to write a program directly in binary using a hex editor, but creating arbitrary software this way is impractical and virtually never done. Developers rely on higher‑level languages and compilers to produce machine code, so the claim that any software can be coded directly in binary is inaccurate.
Sources 60 searched
- 1.4. Machine Code
A compiler reads a program written in a high-level language, like C++, from a source code file. The compiler translates or converts the source code to executable machine code and writes it to a program file. On Windows computers, executable files produced by the C++ compiler end with .exe; other operating systems follow different naming conventions. The operating system loads the machine code into main memory, where the hardware runs it directly without further processing.
- A Technique for Decompiling Binary Code for Software Assurance and Localized Repair
We aim to enable localized repairs, i.e., repairs that are confined to a single function and can’t break code elsewhere. Localized repairs can be feasible even if the binary as a whole cannot be correctly decompiled. In Linux, repaired functions can be recompiled into a separate library file, and the LD_PRELOAD environment variable can be used to load repaired functions, overriding the unrepaired functions. With additional work, the repaired functions can be inserted directly into the original binary file.
- Machine code - Wikipedia
[ op | rs | rt | address/immediate] 35 3 8 68 decimal 100011 00011 01000 00000 00001 000100 binary ... Machine code is similar to yet fundamentally different from bytecode. Like machine code, bytecode is typically generated (i.e. by a compiler) from source code. But, unlike machine code, bytecode is not directly executable by a CPU. An exception is if a processor is designed to use bytecode as its machine code, such as the Java processor. If bytecode is processed by an software interpreter, then that interpreter is a virtual machine for which the bytecode is its machine code.
- . . Latest updates: hps://dl.acm.org/doi/10.1145/2931037.2931047 . .
prevalent in real software. Dyninst reported that all the eight · code constructs were found in every test binary. The results · of BAP and IDA Pro confirmed the prevalence of four code · constructs. For the other code constructs for which either · BAP or IDA Pro reported nothing, we confirmed by hand that · the instances reported by Dyninst are indeed true. Since we · lack ground truth, we cannot directly compare the tool kits’
- Is it possible to program in binary? - Stack Overflow
Does anyone have any info on programming in binary and if possible maybe a quick Hello World example. ... Yes, of course. Ask this friend of a friend to produce the example. ;-) ... Similar to [Can I write a program in binary directly ?
- Can I write a program in binary directly ? How can I get the computer to execute it? - Stack Overflow
... Sign up to request clarification or add additional context in comments. ... Use a hex editor, write your bits and save it as an executable file (either just with the file extension .exe in Windows or with chmod a+x filename in Linux).
- language agnostic - Would there ever be a reason to write code in pure binary? - Stack Overflow
I don't think processor designers program in binary to get new systems bootstrapped. Surely they cross-compile. 2010-02-19T22:38:16.27Z+00:00 ... Cross compiling is the way to go these days, but back at the dawn of time things were different. 2010-02-19T22:48:36.683Z+00:00 ... I didn't have any assembler to my eight bit Atari, so I wrote the machine code directly.
- programming languages - Why are not programs already in binary code? - Computer Science Stack Exchange
So programmers invented higher-level languages such as FORTRAN and BASIC (and eventually C and Java) and wrote compilers and interpreters which would translate code written in a higher level language into assembly language instructions or directly into binary instructions. Not only did this make programmers even more productive, but also by creating compilers for different types of computer, the same FORTRAN program could be translated and run on different computers.
- Coding in Binary Code ! A thing ? - DEV Community
There are some, but there are mostly used for reverse engineering compiled software. If you're coding in binary per se, you either need to write in a hex editor, or use any text editor if you'll be writing in assembler, since the simplicity of the syntax make it more than enough.