Hi Gordon,

Gordon Henderson schrieb:
>> is there any command that parses the .hex files and tells you the how
>> much code ?
> 
> Actually, I've just found out by accident that the standard unix 'size' 
> command will parse the hex files - approximately. I guess it just lumps 
> everything into one big segment, but it's almost right!
> 
> If I can be bothered I'll write something, but it's good enough for now.

you can use srec_info from the srecord package. Recommended anyway:)
Cross platform. At http://srecord.sf.net

example of its output:

> srec_info interrupt.hex  --intel
Format: Intel Hexadecimal (MCS-86)
srec_info: interrupt.hex: 11: warning: data records not in strictly ascending
    order (expected >= 0x00A5, got 0x0046)
Data:   0000 - 0003
        000B - 000D
        0013 - 0013
        001B - 001B
        0023 - 0023
        002B - 002B
        0033 - 0033
        003B - 003B
        0043 - 00F9


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to