Hi Aaron,
.s files are just text files containing assembler source.
The leJOS linker (see jtools/js/tinyvm/TinyVM etc.) takes all the user's Java
class files and forms a closure - i.e. it follows all references until it has
found all the class files that are needed by the program. It then produces a
binary file, the format of which is specific to leJOS. It is not packaged with
other stuff - everything comes from standard class files, either compiled by
the user, or in classes.jar. I think all the record types in the binary are all
standard class file record types, but I am not sure about that as I have not
had to touch the linker much - it is largely still the same as Jose Solorzana
originally wrote it. The code from the class files is copied into the binary
unchanged, other than fixing up offsets. Interpretation of code is therefore
pretty similar to the way it is done on a PC with the Sun JVM, although the
implementation of the leJOS VM was all Jose's work and did not use Sun code.
The Java VM has not been updated with the more recent changes to the java byte
codes, so leJOS programs need to be compiled with - source 1.3, -target 1.1.
Lawrie
----- Original Message -----
From: Aaron R>
To: Lawrie Griffiths
Cc: [email protected]
Sent: Saturday, September 01, 2007 11:16 PM
Subject: Re: [Lejos-discussion] Picture or Block Diagram of design
Lawrie -
Thanks for the great info! Can you tell me what a .S file is? How are they
created?
Does lejos actually interpret the Java byte code, the same way a PC based JVM
would? It seems like the byte code is packaged up with other stuff or else its
actually altered some how.
Cheers,
Aaron R>
------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
------------------------------------------------------------------------------
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.13.1/982 - Release Date: 31/08/2007
17:21
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion