How it is called depends on the compiler. But that wasn't my question. The position of the entry point in the code 1 resource is probably also compiler-dependent. My question was how does the *OS* find the first machine language instruction in the application, so that it can transfer control to it?
There must be some standard way for that. In MS-DOS and Windows, the EXE files have special headers, some fields of which specify the location of the entry point relative to the start of the loaded image. COM files under MS-DOS are always run from offset 0x0100 of the segment in which they are loaded. And so on.