Hi,
I got Some ideas About
JJOS. It may not be good. : )
1. I have studied JNI before. As a interface
between Java and Native Lang.,
They use their own set of
primitative type of lang. i.e., they delcare jint instead
of int. jbyte instead of
char/byte. It is a good idea for us to design JJOS. Since
we
can commuincate Java with
Native Lang. using these standard objects.
2. For the Unsigned Operation, It is quite
complicated Problem. I suggest a alternative approach.
e.g. As we want to want to add two unsigned byte. we delcare two byte-size
varaible as usual. Use
alternate function to performation operation.
byte a = 0xf0, b =
0x02;
byte c =
jos.system.unsigned.add(a, b);
int value =
jos.system.unsigned.ToInt(c);
We can convert the add or
ToInt to a native function during interpertion.
We can using this approach
to resolve it.
It may not a good idea.
Let's have discussion on it. :)
Regards,
Hilary
|
- Re: [JOS-Kernel] Some Ideas About JJOS Hilary Cheng
- Re: [JOS-Kernel] Some Ideas About JJOS Clark Evans