• TehPers@beehaw.org
    link
    fedilink
    English
    arrow-up
    11
    ·
    6 days ago

    The final example just boils down to writing the whole program in assembly, doesn’t it? The C function just returns a pointer to a static string, which you might as well do in assembly yourself since it’s less code to do it that way (you can omit the whole function signature).

    In any case, the article does a great job introducing the various compilation stages the C program goes through in order to become an executable.