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
  • the simple answer is yes because of the need to set up stack, heap, vars etc.

    That answer is simple --- but wrong. No, it is not (always) necessary to include it. Because some of the various tools in question (note that the OP didn't specify an architecture) can make do without one, and others supply their own if the user didn't include one.

Reply
  • the simple answer is yes because of the need to set up stack, heap, vars etc.

    That answer is simple --- but wrong. No, it is not (always) necessary to include it. Because some of the various tools in question (note that the OP didn't specify an architecture) can make do without one, and others supply their own if the user didn't include one.

Children
No data