SV: [Icc-avr] Different executable images with .COF and, .HEX??
Bengt Ragnemalm
benra at imt.liu.se
Tue May 27 02:01:39 PDT 2008
Ton, I think you misunderstood me. What I asked for is not the CRC checking
routine, it is the CRC word. It would be practical if it could be added at
compile time. But you are right that it would require the compiler to have
the polynomial calculation but there could be a solutions to that also, let
the user define the calculation that the compiler uses to create the CRC
word.
Another maybe better method is to use the command-after-compile feature and
start the CRC generator. But it is important that the program generate the
same CRC for the HEX and the COFF file. That would be no problem if the
compiler was the generator.
/Bengt
"You should've known that" - Merlin
> -----Ursprungligt meddelande-----
> Från: icc-avr-bounces at imagecraft.com [mailto:icc-avr-
> bounces at imagecraft.com] För Jaspers, Ton
> Skickat: den 27 maj 2008 10:09
> Till: Discussion list for ICCAVR and ICCtiny Users. You do NOT need to
> subscribeto icc-announce if you are a member of this.
> Ämne: RE: [Icc-avr] Different executable images with .COF and, .HEX??
>
> > -----Original Message-----
> > From: Bengt Ragnemalm
> >
> > Is it so far away to ask for that the compiler have the
> > option to generate a CRC word? This feature is very common so
> > it would be a natural feature.
> >
> > /Bengt
> >
>
> CRC generation/checking is an application issue. A compiler should
> compile source code, it is not an application generator.
>
> Further more ANSI-C99 (and older standards as well) dictate a standard
> library, a CRC generator/checker isn't part of that. I understand that
> you would like to see CRC added to the standard lib. If so, write a
> letter to ANSI.
>
> I for one, would be against it for it is obviously an application
> problem and there are so many polynomials out there that a CRC lib would
> be a huge thing. Not to mention copyright issues that the compiler
> builder would need to deal with. These copyright issues would eventually
> have to be paid for by you and me, the compiler builders customers. Then
> we would have to pay for code that most of us would not use. Not a good
> idea IMHO.
>
> If I need a hash polynomial it takes me in average 30 seconds to search
> the Internet and ten minutes to port and implement. Not a big deal.
>
> Cheers,
> Ton
>
> _______________________________________________
> Icc-avr mailing list
> Icc-avr at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-avr
More information about the Icc-avr
mailing list