This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java -> assembler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java -> assembler " Watch "java -> assembler " New topic
Author

java -> assembler

Karl Nilsson
Greenhorn

Joined: Jan 06, 2004
Posts: 14
i know java can embed c code, and c can embed assembler, but does that mean java can indirectly imbed assember? (just wondering, even though i can't imagine a practicle application for it)


Why don't you just go into your home?<br />are you too good for your home, ball?!?
sever oon
Ranch Hand

Joined: Feb 08, 2004
Posts: 268
Java cannot embed C code, not directly in line as many C compilers allow with assembly. Instead, to execute C code from a Java class you'd have to use the Java Native Interface (JNI).
JNI requires you to compile and link all of your C code separately and then hook it to your Java code. As such, anything your C compiler can do with that C code (including embedding assembly) is legal as far as JNI is concerned because that exact code will be run via a JNI call.
sev
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java -> assembler
 
Similar Threads
Form selects and divs
any C lover here?
Is Bytecode is under system programming language?
i need help
Bytecode into my code?