Hi,

The .ihx extension is what sdcc used since it's original start. You 
can override it though with the -o option.

You can also use srecord (http://srecord.sourceforge.net) to create 
contiguous hex files (or many other types).

Maarten

> I believe .ihx and .hex are the same thing. (.ihx is short for Intel
> Hex).  Packihx just rearranges it some, making sure there aren't more
> than 16 bytes per line and removing redundant extended address
> records.  The SDCC hex output is often non-contiguous and
> out-of-order, i.e. the addresses aren't always increasing as you go
> through the hex file, which I've found a bit confusing sometimes and
> can occasionally cause problems with naive programmer or bootloader
> utilities.  Packihx doesn't fix that, though.  You can use makebin to
> convert to a binary file which is contiguous.
> 
> Henry
> 
> 
> On Mon, May 27, 2013 at 9:02 AM, Ma Xiaojun <damage3...@gmail.com> wrote:
> > Hi, all.
> >
> > The command "sdcc foo.c" generates "foo.ihx". And "packihx foo.ihx >
> > foo.hex" is needed to generate the .hex file.
> >
> > As some may know, STC-51's VB written Windows-only ISP software
> > accepts .bin and .hex only. I have no idea about the situation of
> > other vendors' 8051.
> >
> > The question is, why generates .ihx by default? Is it preferred by
> > some programmers or some vendors' 8051? Or there are other reasons?
> >
> > Regards,


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to