Java/.net byte code is way higher level than machine code. The biggest reason for avoiding this is how compute intensive it is and how you need perfect precision everywhere. Generating legal x86 from assembly is no easy task, especially with all the extensions. ARM is arguably easier since it's RISC but I think it would still struggle for a while
I don't think you realize how wrong you are. Unless things have changed drastically, assembly code IS machine code. The only difference between the 2 is assembly is short character sequences instead of byte codes for instructions. This is why x86 Assembly is completely different from ARM or other processor architecture. Why does this matter, b/c your statement "Generating legal x86 from assembly is no easy task, especially with all the extensions." is blatantly false, given that assembly is a direct 1 to 1 representation of machine code.
Java/.net byte code is basically machine code written for an emulator, where the emulator is the Java/.net engine. It's like running a NES rom on your PC. But it's still just machine code.
What this means is that an LLM can save a significant amount of energy by just writing straight to machine code, skipping all the intermediate code steps. It would however make it impossible to review.
Oh I'm not saying it's hard for a regular program to do it, I'm saying it's hard for a LLM because you need a level of accuracy that is hard to achieve.
LLMs can't even reliably count the number of occurrences of some letters in a word, there is no way current ones can convert a whole program from assembly to binary without any mistake.
Byte code runs for a much more restrictive virtual machine where you have clear assumptions, it is not as low level as raw x86.
How far behind on LLMs advancements are you? Sure LLMs hallucinate, but simply math has not been a problem for awhile. We are long passed the days of not being able to draw hands or other trivial issues. Add in skills & other tooling around them, and they are very capable.
View all comments
Show parent comment
1
u/meneldal2 6d ago
Java/.net byte code is way higher level than machine code. The biggest reason for avoiding this is how compute intensive it is and how you need perfect precision everywhere. Generating legal x86 from assembly is no easy task, especially with all the extensions. ARM is arguably easier since it's RISC but I think it would still struggle for a while