Re:An exploration of why Python doesn't require a 'main' fun...
by sszz on Tuesday July 21, 2020 @01:46PM
(#23909016)
There is definitely a main function in the CPython source code.
Re:An exploration of why Python doesn't require a 'main' fun...
by nurettin on Tuesday July 21, 2020 @11:12PM
(#23913552)
The code to parse and populate commandline arguments comes from the linker, and is part of the generated binary, not the standard library. Here's a much better explanation https://embeddedartistry.com/blog/2019/04/08/a-general-overv...
You may enjoy reading this: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm... It explains a lot of how linux loads programs. It's a bit dated though: everything is 32 bit.