I am trying to write startup code in C for lpc2148 using arm real view compiler. please kindly help me.
Why?
Do you have some specific problem with the startup code that Keil supplies?
But, if you insist, Look at the way GCC does it - I think it should be portable...?
yes the start up file from keil works perfectly and gcc start up code is not portable since its compiler specific. There is a challenge for me to write start up code in C for real view arm compiler and i personally like to do that to understand how stack initialization and vector table initialization can be done in C. Kindly help me how to do it and where to start it.
So get on and take up your challenge, then!
Don't just sit there expecting others to do your research for you - where's the challenge in that?!
"gcc start up code is not portable"
Isn't it?
Have you actually looked?
Have you thought about how the "compiler specifics" could either be made non-specific, or ported to the specifics of Keil...?
www.doulos.com/.../
See here, for an example: www.at91.com/.../t,22785.html
View all questions in Keil forum