Most AI coding tools work with source code. They generate Python, JavaScript, C++, or other programming languages that developers can inspect, modify, and compile.
But compiled programs exist at a much lower level. Once source code is compiled, it becomes machine instructions and binary data that a processor can execute directly.
Understanding that binary representation has traditionally required specialized tools such as disassemblers, debuggers, and reverse-engineering frameworks.
Recent developments are pushing language models closer to this lower level. One experiment demonstrated an LLM generating executable files directly as hexadecimal bytes, while separate research introduced a model trained to understand compiled binaries in their raw byte representation.
Together, these efforts highlight an interesting direction for AI: moving beyond source-code generation toward direct interaction with machine-level software.
1. What Does It Mean to Work with Executables Byte by Byte?
An executable is not simply a collection of programming instructions. It is a structured binary file containing information that the operating system and processor need to load and run a program.
On Linux, a common executable format is ELF (Executable and Linkable Format).
An ELF file contains structures such as:
- ELF header, which identifies the file format and target architecture.
- Program headers, which describe how the operating system should load the executable.
- Machine instructions, which the CPU executes.
- Data and other program-specific sections.
For an x86-64 executable, the machine instructions are represented by bytes interpreted according to the x86-64 instruction set architecture.
Normally, developers write source code or assembly language and let a compiler, assembler, and linker produce the final binary.
Byte-level generation removes those intermediate source representations from the generation process. The model must produce the binary representation itself, including the required file structures and machine instructions.
That is considerably more demanding than generating a few lines of source code.
2. An LLM Generates an Executable Without a Compiler
An October 2026 experiment demonstrated how a language model could generate working x86-64 Linux ELF executables directly from natural-language specifications.
The experiment used Claude Sonnet 5.5 and a small automated harness.
Instead of asking the model to produce C or assembly, the system asked it to return the complete executable as hexadecimal bytes.
The generated output included the ELF header, program header information, and machine instructions.
A utility called xxd -r converted the hexadecimal representation into a binary file. No compiler, assembler, or linker was used in this raw-byte generation path.
Two examples demonstrated the approach:
- A 165-byte Hello World executable.
- A 439-byte HTTP server.
Both were designed to run without libc, using direct Linux system calls.
The particularly interesting part is that the model was not expected to get everything right in one attempt.
The verification loop
The experiment used an automated feedback loop:
- A natural-language specification was provided to the model.
- The model generated executable bytes.
- The harness converted those bytes into a binary.
- The binary was executed and tested.
- If the program failed, its execution output and binary diagnostics were sent back to the model.
- The model generated a corrected version, subject to an attempt limit.
Tools such as readelf helped expose information about the generated ELF file, including its entry point and segment sizes.
This feedback was important because a segmentation fault alone did not explain what was wrong with the generated binary.
For example, an extra hexadecimal digit in a long sequence of zero bytes shifted the binary's structure and caused invalid size information. Feeding the decoded ELF details back to the model made the problem easier to diagnose.
The result was not simply an LLM generating machine code. It was an LLM generating a complete executable and correcting its output through external verification.
3. How Reliable Was Byte-Level Generation?
The experiment also compared three approaches:
- Generating C source code.
- Generating assembly.
- Generating the complete executable as raw hexadecimal bytes.
The results across five independent runs per example were:
| Program | C | Assembly | Raw bytes |
|---|---|---|---|
| Hello World | 5/5 | 5/5 | 4/5 |
| HTTP server | 5/5 | 5/5 | 2/5 |
These figures represent runs that eventually passed within their respective iteration budgets, not single-attempt success rates.
Raw-byte generation was noticeably less reliable than generating C or assembly. The HTTP server, for example, passed in only two of five independent runs.
The experiment also reported an approximately 8 KB playable Tetris implementation, but that version was generated in assembly, not directly as raw executable bytes.
This distinction matters because it would be misleading to claim that the model generated the complete Tetris executable byte by byte.
The experiment demonstrates that direct binary generation is possible for small programs, but it does not establish that the approach is ready for large software projects.
4. Teaching LLMs to Understand Compiled Binaries
Generating an executable and understanding an existing executable are two different problems.
The generation experiment focuses on producing binary output. Separately, researchers at CrowdStrike introduced the Large Byte Model (LBM) in a June 2026 paper titled Large Byte Model: Teaching Language Models About Compiled Code.
The goal was to help analysts understand compiled programs without depending entirely on converting binaries into assembly or decompiled source code first.
Traditional language models primarily operate on text tokens. Raw executable bytes contain structures and patterns that are not naturally represented by ordinary text tokenization.
LBM addresses this by extending an existing language model with a specialized byte vocabulary.
Its approach includes:
- A bespoke tokenizer that introduces more than 5,000 additional byte-related tokens.
- Pretraining on raw binary data.
- Instruction-based fine-tuning that combines byte information with natural-language descriptions.
- Processing binary buffers in chunks to handle larger files.
The researchers assembled a dataset containing more than 631,000 files across PE, Mach-O, and ELF formats.
One important limitation: the dataset covered 16-bit and 32-bit architectures. The researchers explicitly left 64-bit architectures for future work. Therefore, this research should not be presented as proof that LBM already understands x86-64 executables comprehensively.
What can the model do?
The paper reports results across several binary-analysis tasks, including:
- Architecture classification.
- Malware-family classification.
- Malicious or benign classification.
- Binary behavior analysis.
- Identification of significant binary regions.
Reported accuracy ranged from 69% for malware-family classification to 98% for architecture classification.
These are task-specific results, not a single overall accuracy score.
The research also highlights an important finding: specialized binary knowledge and training data are essential. A general-purpose language model does not automatically become an effective binary analyst simply because it can accept hexadecimal text.
5. Why These Developments Matter
The ability to generate and understand binary representations creates opportunities in several areas of software engineering.
Binary analysis: Models trained on executable data could help analysts investigate program behavior, identify suspicious regions, and summarize binary characteristics.
Reverse engineering: Direct reasoning over binary representations could reduce dependence on some intermediate translation steps, although disassembly and decompilation will remain useful for human inspection.
Systems programming: Byte-level generation could be useful for very small, controlled programs, particularly when file size and external dependencies matter.
Embedded development: Direct binary generation may eventually become interesting for constrained environments, although hardware-specific testing and verification remain essential.
Security research: Models that understand executable structures could support defensive malware triage and binary investigation. At the same time, generating executable programs creates additional reasons to verify and sandbox AI-produced artifacts.
6. What Still Needs to Improve?
These developments are technically interesting, but several limitations remain.
Reliability: Raw-byte generation is sensitive to even a single incorrect byte. A malformed header or instruction can prevent an executable from running.
Scalability: Generating a tiny HTTP server does not demonstrate the ability to produce a complex application with thousands of functions and external dependencies.
Determinism: Repeated runs can produce different outputs. This makes reproducibility and auditing more difficult.
Testing: A program passing a smoke test does not mean it is secure, correct in every situation, or free from memory-safety bugs.
Auditability: A raw executable is harder to review than readable source code. Disassembly can help, but it does not always restore the original program's intent.
Security: Model-generated binaries should never be executed blindly on production systems. They should be inspected and tested in isolated environments with restricted permissions.
Automated verification is therefore not optional. It is a central part of making these systems useful.
Conclusion
LLMs are beginning to work with software representations that exist below traditional source code.
One experiment demonstrated direct generation of small x86-64 executables as raw bytes, while separate research showed how specialized language models can learn to interpret compiled binary data.
Neither development makes compilers, assemblers, or reverse-engineering tools obsolete. The generation experiment remains limited and unreliable for some tasks, while byte-native binary understanding is still an evolving research area.
The important shift is that AI systems are moving closer to the actual representations processed by computers.
As models improve at understanding and generating machine-level data, binary analysis, systems programming, and software verification could become new areas of practical AI-assisted engineering.



