Hi Arnab, you have not reported back to the proposals Maarten or Sietse made.
a) If the proposals fixed your issue - fine. b) If you wanted to get rid of the startup up code in order to save some bytes code space then you won't feel helped. So there's yet another (be warned: steeper) way to disable SDCC startup code. The startup code used for 8051 is currently best described in the text file "startup.doc" by Ralf Guetlein attached to report: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1626326&group_id=599 The startup code is generated from the files: crtbank.asm crtclear.asm crtpagesfr.asm crtstart.asm crtxclear.asm crtxinit.asm crtxstack.asm within /device/lib/mcs51 If you are for example using a device without any xdata memory it would make sense to link stripped versions of crtxclear.asm, crtxinit.asm and crtxstack.asm to your project. And if you don't need _sdcc_external_startup() or don't need data memory being set to zero then you can use modified versions of: crtstart.asm and crtclear.asm as well. Have fun and don't forget to set the stack pointer!) Greetings, Frieder ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user