To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 13337
13336  |  13338
Subject: 
Re: difference of generated code robolab<->NQC
Newsgroups: 
lugnet.robotics
Date: 
Sun, 3 Dec 2000 20:14:07 GMT
Viewed: 
1036 times
  
In article <002f01c05c7f$30698e80$751207d5@nino>, "el nino"
<e.nino@gmx.net> wrote:

hi,

i need to know if there is a difference between the code generated by
Robolab and NQC.
Both are running with the standard RCX Firmware, i also know that the
compiled code of both
is interpreted by the firmware.

-> is the generated code the same ?
-> can i proof with wich tool the software was made, when i only have the
programmed RCX Brick ?


They both generate the same "kind" of code (specifically LASM
bytecodes), but its unlikely that code would be identical.  I'm sure
there are certain patterns of code that are typical from Robolab
programs, and certain patterns that are typical from NQC.

For one thing, Robolab source programs are very different from NQC
source programs.  One uses icons, the other text.  There is no
one-to-one mapping between every possible Robolab program and every
possible NQC program.  So there are going to be differences even at the
functional level.

In addition, some differences also exist in the way code is generated.

If you are looking at the bytecodes themselves, then it may be possible
to determine whether it came from NQC or Robolab....but this would
always be just a "guess".  Specifically, since NQC supports directly
emitting raw bytecodes, it would always be possible to write an NQC
program that generated code that looked like a Robolab program.  Of
course if you spot something in the bytecodes that Robolab doesn't
support, then you know it came from NQC.

If you only have the bricks, then you either have to guess based on
functionality (there are a few things that NQC supports that Robolab
doesn't), or you would have to figure out a way to extract the program
(shouldn't be too difficult with RCX 2.0 firmware).

Given that this is a complicated problem, why do you need to know if a
certain program was created by Robolab or NQC?

Dave Baum

--
reply to: dbaum at enteract dot com



Message is in Reply To:
  difference of generated code robolab<->NQC
 
hi, i need to know if there is a difference between the code generated by Robolab and NQC. Both are running with the standard RCX Firmware, i also know that the compiled code of both is interpreted by the firmware. -> is the generated code the same (...) (24 years ago, 2-Dec-00, to lugnet.robotics)

2 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