![]() | ||||||||||
Messages in this thread |
In linux.dev.kernel, article <Pine.LNX.3.95.970107173232.30178B-100000@erm6.u-strasbg.fr>,
Stephane Casset <casset@erm6.u-strasbg.fr> writes:
> Why translating the source to Java, just keep it in C or C++ but compile
> it for the Java VM... The important thing is to have the bytecode. I am
> wrong ?
>
Yes: you are wrong. The bytecode does NOT support such C features as
"dereference an arbitrary pointer". The Java VM is supposed to afford a
safe, "boxed", environment for arbitrary Java code snippets. You can't do
that if you would ever allow the bytecode equivalent of perfectly-legal C
code such as "*(char *)0x123456 = 0x78" to run.
--
When you don't have an education, you've got to use your brains.
-- Anonymous
--
Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg
Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42
| |||||||||
| Last update: 2005-03-22 12:38 [from the cache] ©2003-2008 | ||||||||||