Forum Discussion
AKAYA
Occasional Contributor
7 years agowhat is the difference between function main() and alt_main()??
hello,
i need to create a customized boot code for my application.
so, according to the software manual i can make use of alt_main() for implementation of my own coding..
can someone please explain me how exactly does the alt_main() function works..
3 Replies
- KhaiChein_Y_Intel
Regular Contributor
Hi AKAYA, Normally, your program’s entry point is the function main(). There is an alternate entry point, alt_main(), that you can use to gain greater control of the boot sequence. The difference between entering at main() and entering at alt_main() is the difference between hosted and free-standing applications. Reference: https://www.intel.com/content/www/us/en/programmable/documentation/mwh1416947091611/mwh1416946758774.html Thanks.- AKAYA
Occasional Contributor
thanks for the reply....
can we use both alt_main() and main() in same project?
if its possible then will the alt_main() fuction calls the main() function by default or we need to call the function explicitly
- KhaiChein_Y_Intel
Regular Contributor
Hi AKAYA,
Kindly refer to 'Customizing the Boot Sequence' section in https://www.intel.com/content/www/us/en/programmable/documentation/mwh1416947091611/mwh1416946758774.html
Thanks