"zh**********@gmail.com" wrote:
>
Hello,
I using the TCC compile some C source file. and then link the object
files by the tlinker. but, I can't specify the programme entry point,
such as 0x7C00. I know that it can specify the point in asm ORG
instruction. Can you help me? thanks.
[...]
The entry point is the function called "main", which is either:
int main()
or
int main(int argc,char *argv[])
If by "TCC" you mean the old Turbo C compiler, I believe that it also
supports a non-standard:
int main(int argc,char *argv[],char *envp[])
Well, technically, the "entry point" is someplace within the runtime
library, but main() is what you care about.
--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody |
www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net |
www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>