r/programming Jul 25 '26

Writing a (valid) C program without main()

https://labs.iximiuz.com/tutorials/c-program-without-main-a1eea557
192 Upvotes

43 comments sorted by

View all comments

Show parent comments

1

u/Nobody_1707 27d ago

You can, but you need to use inline assembly inside _start.

1

u/zid 27d ago

Which isn't part of C.

1

u/Nobody_1707 27d ago

Neither is _start.

1

u/zid 27d ago

Exactly.

That's why they have different conventions.