main() instead of __main() erases my data section

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by JamesB on Sat Jun 11 12:24:39 MST 2011

if I set cr_startup_lpc13.c to use main() instead of Redlib's __main, my data section becomes only 4 bytes. I'm guessing the linker is eliminating it. What do I have to do to get it back? I don't have enough code space for Redlib's toupper() and the like (as shown by the map file) and don't use them anyway.

Thank you