This thought started cause I'm new to PIC experimenting and think I've abused the space on an F872. Looking at the Hex file, it was not apparent to me how many bytes were being used. From the archives, I found out that... hex-file-size = 2 x code-size + overhead. Bit there is no clear indication of how much the overhead is. Isn't it possible to ORG to any location and start my code there? If so, then the last address used is not the actual code size, right? I'm not using MPLAB -- just moved mpasm to Linux under dosemu. Once that worked, I just stuck with it. I do intend to get gpasm/gputils running someday soon-ish, though. Writing this code seemed fairly easy, so I thought I would do that. Cheers. ----- Original Message ----- From: "Drew Vassallo" To: Sent: Thursday, March 14, 2002 3:10 PM Subject: Re: [PIC]: Weekend project (Linux Hex-file utility)? > >Just figured out my weekend project (if weather is bad)... a .hex > >file size-check utility. My intention is to create a Linux command- > >line utility that will be given a .hex file, and would spit out the # of > >bytes being used on the chip. Should be fairly simple from what > >I see of the INHX8M file format. > > Why is this useful? Just by looking at the listing out of the compiler you > can see how many bytes are used. Or, when you program the chip, you can > just look at the last address used. Maybe I'm missing something, but I > guess I've never really had a problem with wondering how many bytes are > used. In MPLAB, you can see the program memory listing, which shows all the > locations used, up to the maximum of the chip. > > --Andrew > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics