Hector Martin-2 wrote: > > M Wedin wrote: >> I have come across the strangest problem. When I compile a standalone >> run.asm:91:Error [152] Executable code and data must be defined in an >> appropriate section. >> >> And lots of them. The simplest bsf instruction will cause one to occur. >> >> I would be very happy if someone could shed some light on this. I am >> using >> PiKdev under Debian Etch, stable. >> Best regards, Wed > Pikdev wants you to use relocatable mode for everything, whereas your > source is probably using absolute mode. Check for "ORG" directives > (relocatable mode uses "CODE" instead). > > Pikdev is a project-based system and allows for multiple source files, > so it forces you to use relocatable mode (at least by default). > Relocatable is better anyway, as it's much more flexible. > > There has been a lot written on the subject. See this link for example: > http://forum.microchip.com/tm.aspx?m=46653&mpage=1 > > By the way, I use Piklab. It's a fork of Pikdev, and in my opinion it's > much better :) (at least back when I switched) > > -- > Hector Martin (hector@marcansoft.com) > Public Key: http://www.marcansoft.com/marcan.asc > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > Thanks a whole lot, works great. It makes sense really ... But it had me steaming for a while. I can't recall it doing this before. I checked out Piklab and it seems interesting. Is Alain Gibaud on board this fork? Oh well, I'll find out. But I really appreciate his effort. Wed -- View this message in context: http://www.nabble.com/Executable-code-and-appropriate-section.-tf3780855.html#a10698196 Sent from the MicroControllers - PIC mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist