Hello, I realised that my programs doesn't work if I don't use a simple routine to avoid linking the sdcc_gsinit_startup code. It could be problematic for those sdcc users who started to use sdcc for a couple months ago. I am using this simple code for my programs, because the generated code is smaller:
void _sdcc_gsinit_startup(void) { __asm pagesel _main __endasm; __asm goto _main __endasm; } It was offered in the mail-list somewhere. Unfortunately I run into this problem time to time, when I start a new project. My first step is driving a LED, which is very simple if everything is working. My brain is very small, so I am alway forgetting to add this simple routine to the program, and the LED isn't working as I expected. I am downloading the source of SDCC from svn every time and do the compiling myself. I was thinking that I am doing something with it, and that is why gsinit doesn't working. Today I downloaded and installed the SDCC 3.2.0 rc1, but the situation is the same. So my program doesn't work if I don't avoid to linking the gsint routine from the library. If I will have more time I will check where the program strugle. I hope on this weekend I will have time for it. Zsolt ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user