Skip navigation
ASM -> C ≠ C -> LLMs
0:00 / 3:16

ASM -> C ≠ C -> LLMs

Ryan Fleury

@rfleury26K followers

Visit on X
821 likesDownloadOriginal post

34,663 views

ASM -> C ≠ C -> LLMs

17 Comments

Comments from the original post on X (Twitter)

  • LaurieWired's profile picture

    @lauriewired

    same reason why the highest reliable language decompilers (ghidra, ida, etc) can reconstruct from arbitrary binaries is…pseudo-c. predictable enough that you can reverse it

    109 likes

  • Ryan Fleury's profile picture

    @rfleury

    That is fascinating!

    34 likes

  • LaurieWired's profile picture

    @lauriewired

    honestly I recommend any dev to try reverse engineering their own (small) binaries at least once! try writing a really simple program in C, and then do it again in rust. drop it in ghidra, use a model / mcp / whatever to churn away at it, and watch how different (or not!) the decompilation is from the original source code. you'll be surprised how it looks...especially rust (lol)

    202 likes

  • MemoryLeak's profile picture

    @leakedmemory

    Content like this is why I open this piece of shit twitter thing.

    6 likes

  • _D's profile picture

    @Drillan_Rage

    A major point of C was to create a layer of abstraction to enable portability across many architectures. If we lived in a monoarchitecture world where all hardware was identical, I'd imagine there would still be a hold out assembly programmers who hold quality above all else.

    2 likes

  • Jawaid Bazyar's profile picture

    @BazyarCodes

    The contract for C code to ASM is "the ASM will produce the same outputs for the same inputs". You can specify contracts of that type for LLM code.

    2 likes

  • Ryan Fleury's profile picture

    @rfleury

    That is not the contract for C code to ASM. But in any case, if the contracts are not computable, then they cannot be trusted by themselves.

    19 likes

  • Mangy Bear (หมีขี้เรื้อน)'s profile picture

    @QueueThread

    I can’t believe we have to have this totally retarded discussion but here we are 🤦

  • binit's profile picture

    @binit_lenka

    yeah the thing is LLMs are non deterministic while C compilers are supposed to be deterministic. I can exactly predict what it will output from a compiler but not the same from a LLM

  • Annu Singh's profile picture

    @_AnnuSingh

    It takes intelligence to design and craft a flute. Once created, the instrument reliably produces a musical tone when played correctly. A compiler is like a flute (tool), and a program is like music.

  • manohhoerse's profile picture

    @manohhorse

    Very interesting video, probably. I'm sure the content is very deep. I just couldn't hear a word over how good that beard looks.

  • Damian Gray's profile picture

    @damianGray

    Like all analogies, it breaks down the closer you get to the source.

  • Sadly life respecter's profile picture

    @Sadlylifes41u

    I mean if you ask an LLM , “solve XYZ” and it just solves XYZ, 99% of the tlime, even it can be super predictable. You just don’t like the fact that it solves XYZ, you would rather be doing that problem solving. Unfortunately the time of human problem solving is over

  • Ryan Fleury's profile picture

    @rfleury

    Embarrassing response & instantly trivially disproven

    28 likes

  • verse 's profile picture

    @VerseNilVis

    off topic but what camera are you using? looks reallly clean and detailed

  • The Coredump Whisperer's profile picture

    @Danukeru

    PDP-11 heritage that we take for granted today through Intel and other ISAs...is C maps best to ISAs that used a heavily stack based abstraction with native hw stack frames call graphs. Recursion, nested calls, local variables, and function pointers etc. came easier.

  • Gerson Sosa's profile picture

    @gersondev0

    You cut off right at the point it was getting interesting, the real question for me is: how can you make these tools as realiable as a compiler, these are supposedly stochastic