Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] assert.h not available!? [RSS Feed]

#1 Oct. 26, 2005 20:20:21

Torsten L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] assert.h not available!?


Hi,

I was wondering why assert.h is missing on avr. I am writing my own
assert.h over and over so I'd like to have it in avr-libc as I assume
that others would like to have it as well.

The default action on assertion failure could be to dump a message to
stderr and I'd suggest to make it configurable to use other means of
reporting failure.

What do you think?

Torsten


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#2 Oct. 26, 2005 21:01:47

Eric W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] assert.h not available!?


Torsten Landschoff wrote:Hi,I was wondering why assert.h is missing on avr. I am writing my own
assert.h over and over so I'd like to have it in avr-libc as I assumethat others would like to have it as well.The default action on assertion failure could be to dump a message tostderr and I'd suggest to make it configurable to use other means ofreporting failure.What do you think?The devil's in the details. What other means did you have in mind?But this post is more appropriate for the avr-libc-dev list (which isnow in the CC list). I suggest moving this thread over there.--
Eric Weddington


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

#3 Oct. 29, 2005 17:52:28

Dave H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] assert.h not available!?


From: Eric Weddington <>Torsten Landschoff wrote:Hi,

I was wondering why assert.h is missing on avr. I am writing my own
assert.h over and over so I'd like to have it in avr-libc as I assume
that others would like to have it as well.

The default action on assertion failure could be to dump a message tostderr and I'd suggest to make it configurable to use other means ofreporting failure.What do you think?The devil's in the details. What other means did you have in mind?FWIW, at a PPOE on a different architecture, I set up the assertion failureto generate a breakpoint in the debugger with a software interrupt. Lowoverhead, and quite effective.However, IIRC, not all AVRs support the break instruction. I'm not sure ifor how something like this could be made portable across the line...But this post is more appropriate for the avr-libc-dev list (which is nowin the CC list). I suggest moving this thread over there.I'm not subscribed to that group, and my internet access has been (and isprobably going to remain) sporadic for a while. Hope you guys can stand thenoise over here...Regards,
-=Dave




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

Board footer

Moderator control

Enjoy the 20th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support