|
From: Smitha V. B. <smi...@so...> - 2003-12-29 12:37:22
|
i don't know how to setup the processor register or what value i have to give for it.. we are using the hitachi chip.. is there any good tutorial with which i can start... Expecting help... regds smitha > -----Original Message----- > From: Per Westermark [SMTP:pw...@ia...] > Sent: Monday, December 29, 2003 5:50 PM > To: Smitha V. Babu > Cc: dev...@li... > Subject: RE: [Dev-C++] write a startup code > > There is nothing magic about it. > > All you have to do is setup the processor registers. Then you may call the > _main function and perform the rest of the hardware initialization there. > > What type of processor are you using? If it is a 386 or higher you might > have to initialize processor to proper memory mappings and then enter > protected mode before calling _main. > > /Per W > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > hi .. > > thank you for your instant reply.. > > I am writing startup code for my gcc compiled program for SH on custom > made > > board. The code that is been generated is fine. But now, I want to add > my > > own startup code. > > What i have to do..does I need to write a small piece of "free-standing" > > code, i.e. it will contain its own startup code . > > can u give some guidelines.. > > how i have to start > > regards > > smitha > > > > > -----Original Message----- > > > From: Per Westermark [SMTP:pw...@ia...] > > > Sent: Monday, December 29, 2003 5:21 PM > > > To: Smitha V. Babu > > > Cc: dev...@li... > > > Subject: Re: [Dev-C++] write a startup code > > > > > > You have to come back with more information. Are you building some > > > embedded system or? That is the only reason to write own startup code. > > > > > > /Per W > > > > > > On Mon, 29 Dec 2003, Smitha V. Babu wrote: > > > > > > > hi , > > > > Does any body know how to write startup code.. > > > > How i can tell the processor to go to main function execute a > particular > > > > function..register exit functions... > > > > > > > > regards > > > > smitha > > > > > ********************************************************************* > > > > Disclaimer: The information in this e-mail and any attachments is > > > > confidential / privileged. It is intended solely for the addressee > or > > > > addressees. If you are not the addressee indicated in this message, > you > > > may > > > > not copy or deliver this message to anyone. In such case, you should > > > destroy > > > > this message and kindly notify the sender by reply email. Please > advise > > > > immediately if you or your employer does not consent to Internet > email > > > for > > > > messages of this kind. > > > > > ********************************************************************* > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: IBM Linux Tutorials. > > > > Become an expert in LINUX or just sharpen your skills. Sign up for > > > IBM's > > > > Free Linux Tutorials. Learn everything from the bash shell to sys > > > admin. > > > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > > > _______________________________________________ > > > > Dev-cpp-users mailing list > > > > Dev...@li... > > > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ********************************************************************* > > Disclaimer: The information in this e-mail and any attachments is > > confidential / privileged. It is intended solely for the addressee or > > addressees. If you are not the addressee indicated in this message, you > may > > not copy or deliver this message to anyone. In such case, you should > destroy > > this message and kindly notify the sender by reply email. Please advise > > immediately if you or your employer does not consent to Internet email > for > > messages of this kind. > > ********************************************************************* > > ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |