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,
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to