From: Vangelis R. <vr...@ot...> - 2004-02-12 13:45:45
|
> -----Original Message----- > From: sdc...@li... > [mailto:sdc...@li...] On Behalf Of > James Chadd > To: sdc...@li... > Subject: [Sdcc-user] Possible PIC16 Port Bug > I think I've found a bug in the pic16 port, but I thought I > should check that I'm not doing something silly before I > submit it to the bug tracker. It won't be the only one, so don't be afraid to submit Bug reports. The port is currently under development so bugs Are floating all around... > When an assembler statement is the first line in a loop the > compiler ignores it when generating labels. As far as I can > tell this happens with all types of loop ( while, do-while, > for and lable-goto(!) ). The code below reproduces the problem. > > void main(void) > { > while(1) > { > _asm nop _endasm; > } > } > > which generates this asm: > > S_main__main code > _main ;Function start > nop > _00106_DS_: > ;#CSRC main.c 10 _asm nop _endasm; > GOTO _00106_DS_ > RETURN I'll take a look later this day, if Hans doesn't fix first! Regards, Vangelis |