Send the elf file if it's a small piece of code. -Mike. --- dean_j_greaves <dgreaves@...> wrote: > > Hi, > I having a problem with some code i'm developing > on the LPC2214 > chip using GNU tools. > I have a simple function that performs a division. > > unsigned int a=0, b=1000, c=10; > > a=b/c; > > When i compile up the code and download to the > target, the code > breaks when i step over this division routine. When > i step in to the > assembly code for the division, it has compiled in > __divsi3 from the > libgcc library. > The problem appears to be that just before the > return from the > division function, it attempts to restore registers > from the stack > that it never actually push onto the stack. > Has anyone ever come across this before. Any help > would be > gratefully received. > > Dean > > > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
Message
Re: [lpc2000] Division function
2004-11-01 by Michael Anburaj
Attachments
- No local attachments were found for this message.