This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: what's the right way to use custom entry point


* Cong Monkey:

>> The easiest way is to link against an existing libc, or at least its
>> startup code.
>
> If I use custom entry point, the argc and argv I get is very strange,
> it's not the same as I get from normally main entry point!

That's expected.  You have to implement your own startup code.  It's
the reason why linking against an existing libc is the easiest
solution.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]