Re: [Sdcc-user] Emergency help... linker memory error with DSEG

2008-09-10 Thread Maarten Brock
Jesse, > unsigned long var32; > unsigned short var16; > > If I do this: > > var32= var16 * 60; > > I get a 16-bit multiply, not a 32-bit. This caused an overflow and a > bug. doing this: > > var32= *(unsigned long)var16) * 60; > > solves that. > > But, I thought that there was automatic t

Re: [Sdcc-user] USB compilation for PIC16 - strange errors

2008-09-10 Thread Vaclav Peroutka
Hi Raphael, > Hmm. I spent the evening (after your post) compiling and inspecting the > USB/PICHID/* stuff and updated the source to compile without warnings > "the right way" (except for EVELYN, which is harmless: it removed empty > if-blocks). Find attached a more generally applicable Makefil