To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.ca.rtltorontoOpen lugnet.org.ca.rtltoronto in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / Canada / rtlToronto / 16374
16373  |  16375
Subject: 
Re: BASIC for the NXT was Re: R21 - Robot Status
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Tue, 11 Jul 2006 21:46:02 GMT
Viewed: 
977 times
  
In lugnet.org.ca.rtltoronto, Calum Tsang wrote:
It is my understanding (and correct me if I'm wrong) that the NBC today is an
assembler which a compiler needs to pass object from C source to be linked to.
This is of course an extremely important step and a welcome achievement.  But I
(and I would suspect a lot of rtlToronto folks as well as Lego enthusiasts in
general) want the equivalent of NQC + RCXCC.

A NXT-C compiler which supports every NXT feature will not likely be done by
BrickFest.  I hope to have a first cut with partial support for the NXT features
working within a couple weeks.  My intent would be to incrementally add support
for all of the things you mentioned.

There are some major issues, though, to be considered.  The NXT VM doesn't do
pointers or any indirect variable access like you find in the RCX.  It supports
arrays so you can do things akin to pointers but it's not quite the same.  It
also doesn't have anything like event monitoring, resource acquisition, or
direct control over starting and stopping other tasks.  It also doesn't have any
notion of a stack for use with parameter passing (like what was added to the
Spybot firmware and supported in MindScript for the Spybot brick) or local
variables of any sort.

NBC is an assembly language, but it is really a LOT like programming in BASIC
without the built-in looping constructs and without infix operators.  It will be
nice to have a high level language that fully supports all the NXT features and
which can be run from within a really nice IDE.  Delivering such a product to
the LMS robotics community is my goal.  But the fact is that right now you can
very easily write powerful programs in an IDE that at least a few people like
using with a language which is very simple to learn and which supports
essentially all the NXT features already.

John Hansen



Message is in Reply To:
  Re: BASIC for the NXT was Re: R21 - Robot Status
 
(...) Here's what I want: a) An environment that works like BricXCC that allows for edit, debug and compile from a graphical front end. b) A language which looks like C and supports proper function/variable passing (UNLIKE NQC). Not C#, not BASIC, (...) (18 years ago, 11-Jul-06, to lugnet.org.ca.rtltoronto)

17 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR