Results 1 to 7 of 7
- 02-04-2011, 05:31 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 3
- Rep Power
- 0
- 02-04-2011, 05:36 AM #2
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
The most straightforward way would be to use c or c++ JNI bindings to do some trivial thing in c/c++ (like print "hello world"). Once you get that to work, then make the assembly call from c/c++.
- 02-04-2011, 01:34 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 3
- Rep Power
- 0
ya thats working but not with JNI with JInvoke anyway now how do i make call from c/c++ to assembly??
- 02-04-2011, 01:38 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 02-04-2011, 10:48 PM #5
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
You'll have to check your compiler for specifics, but typically, you embed assembly into c using an "__asm" or "__asm__" block. Here's an example: Calling C Functions in Inline Assembly
- 02-07-2011, 04:33 AM #6
Member
- Join Date
- Feb 2011
- Posts
- 3
- Rep Power
- 0
hey i need to generate dll from the assemble language code so that it can loaded into java program.. but i dont know how to generate dll from assembly lang code??
guys any help??
- 02-07-2011, 07:43 AM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,601
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Calling Java from C++ code
By franklyn@bellsouth.net in forum New To JavaReplies: 1Last Post: 11-25-2010, 10:06 AM -
Inline JVM assembly in Java
By youngstorm in forum Advanced JavaReplies: 2Last Post: 09-15-2010, 07:14 PM -
Forgotten Assembly Language Commands
By Nicholas Jordan in forum EntertainmentReplies: 1Last Post: 04-06-2010, 05:00 AM -
calling c code from java
By sara12345 in forum New To JavaReplies: 14Last Post: 12-27-2009, 06:12 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks