during reset the application need to initialize libc which then will call main function