Floats / debugger questions

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Two questions:
Q: Is it possible to use floats in avr-gcc?
Q: Can I view my variables (like int, uint16_t,.. ) in avr studio? I cant seem to find them. Or is it possible in the new version of avr studio?

Regards,
Chris

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sure, gcc has float support. There is an alternative to the GNU float library which you link in with the -lm option. The alternative is very compact and fast.

You cannot watch variables with gcc. That support is coming, but at an unspecifed later date.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Very nice...

Does it do these floating-point calculations in software then? The atmel has no multiply and no FP-unit.

Regards,
Chris

admin's test signature