Subject:
|
Re: About firmwares
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Mon, 22 Oct 2001 07:18:52 GMT
|
Original-From:
|
Steve Baker <sjbaker1@SPAMCAKEairmail.net>
|
Reply-To:
|
sjbaker1@airmail.netIHATESPAM
|
Viewed:
|
560 times
|
| |
| |
Nathan Nesbit wrote:
>
> > Over LegOS the advantage is that it is easier to debug IMHO.
>
> Why is it easier to debug? How would you compare Lejos with NQC in ease of debugging.
(I've never used LejOS but...)
With LegOS (and I would imagine with LejOS), the advantage is over NQC is
that the language you are programming in is a standard implementation. Hence, you
can compile your program with the specialised calls for motors and sensors
replaced with 'printf' and 'getchar' calls and run it on your PC. Then, you
can use any standard C debugger (or Java debugger in the case of LejOS).
If you use Linux (or the CygWin environment under Windoze), you are even
using the same GCC compiler front-end.
You can't really do that with NQC because it is sufficiently different from
standard C to prevent you from compiling all but the most trivial
of programs using a standard C compiler.
Debugging NQC got a lot easier with the 2.0 RCX firmware because you can
now display the contents of a variable on the LCD. Now you can at least
write different numbers into that variable in different places in your
code and see where it is executing.
----------------------------- Steve Baker -------------------------------
Mail : <sjbaker1@airmail.net> WorkMail: <sjbaker@link.com>
URLs : http://web2.airmail.net/sjbaker1
http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
http://prettypoly.sf.net http://freeglut.sf.net
http://toobular.sf.net http://lodestone.sf.net
|
|
Message is in Reply To:
| | RE: About firmwares
|
| (...) Why is it easier to debug? How would you compare Lejos with NQC in ease of debugging. -----Original Message----- From: Juergen Stuber [mailto:stuber@loria.fr] Sent: Saturday, October 20, 2001 12:22 AM To: lego-robotics@crynwr.com Subject: Re: (...) (23 years ago, 22-Oct-01, to lugnet.robotics)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|