Get the latest tech news

Writing a (valid) C program without main()


Walk through the C compilation pipeline: preprocessor, compiler, assembler, and linker. Start with a normal hello world, inspect macros and generated assembly, and end by producing a running binary that has no main() function.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of C program

C program

Related news:

News photo

Diels-grabsch2: Self Hashing C Program (2019)

News photo

Writing a Self-Mutating x86_64 C Program (2013)

News photo

Show HN: I made a C program to create a vanity SHA-1 hash for a text file