• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How does picoJava-II interact with the JVM and OS?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a problem understanding how a system based on picoJava-II (picoJava, respectively) works in detail. I think it's easy to answer/confirm for someone who has already worked with picoJava.

Let's assume a typical systems which consists of the picoJava-II core (embedded in hardware of course), an OS, a VM and a java application:

Let's begin: :-)
The JVM and OS are written in C (or C++) and compiled to java (extended) bytecode with a C++2Bytecode compiler (e.g. Metaware).
Is this right so far?

If the java application wants to create a new object the VM allocates memory from the OS (how does it call the OS? Via an extended bytecode?). The OS then calls an extended bytecode instruction which is trapped by picoJava who jumps to and executes the adequate subroutine. Is this right so far? (To which software does the subroutines of the extended bytecode belong to?)

If you can just confirm this or correct me, it would give me great pleasure. :-)

Thank you very much in advance!
Dennis
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic