> > Don't forget, every line ends with a CR/LF. There are 13 extra bytes of > > overhead for every line of hex stored in the file. > > Not under Linux though. I think this may depend on the particular linker. I haven't examined the "real" specs for the file format, but some descriptions that I have seen mater-of-fact'ly state that each line ends in CR/LF. But as you say SDCC doesn't do that, there is only a linefeed. My advice is to expect both if you are going to parse a hex file. ;-) michael brown -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.