This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Regarding startup file

Hello, I written simple c program mention below by selecting the lpc2148 chip but not include its startup file in the project. when i run it will go in infinite loop. I also put the break point but i think its not coming to that execution line. Is it necessary to include startup file?
void main()
{ int a=2,b=3,c; c= a+b;
}

Parents
  • Per, again you just waffle on. The newbie is writing in 'C' so the case on whether it is required for assembly programs is not relevant to the question. If you look at my previous posts you will see that I also stated the same as you in that it could be incorporated into main(). All this newbie wants is to get their simple program up and running and wants to know if the startup file is required. He doesn't need a lecture on the pros/cons and the various ways to avoid using one. Just help the guy and tell him "yes" and he can learn about the rest as and when he gets more experience. One day he may be as clever as you think you are!

Reply
  • Per, again you just waffle on. The newbie is writing in 'C' so the case on whether it is required for assembly programs is not relevant to the question. If you look at my previous posts you will see that I also stated the same as you in that it could be incorporated into main(). All this newbie wants is to get their simple program up and running and wants to know if the startup file is required. He doesn't need a lecture on the pros/cons and the various ways to avoid using one. Just help the guy and tell him "yes" and he can learn about the rest as and when he gets more experience. One day he may be as clever as you think you are!

Children