Giter Site home page Giter Site logo

pyvesb / javassembly Goto Github PK

View Code? Open in Web Editor NEW
34.0 5.0 8.0 26 KB

:floppy_disk: Calling Assembly from Java: simple example using the JNI and NASM.

License: MIT License

Assembly 70.78% Java 11.26% Shell 12.39% Batchfile 5.57%
assembly nasm yasm jni java x86-64 assembler

javassembly's People

Contributors

pyvesb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

javassembly's Issues

Is this not suitable in windows 7 environment?

Hi Pyves!

I am trying some thing very similar to this code, we are working on a legacy migration project.
Cobol to JAVA (we use a tool that help in this) . Some of cobol programs are calling the Assembly programs in its inner level.

So for such Assembly code, the tool we use will not handle and we need a mechanism to call it as it is from Java converted code.

Please put your thoughts here.
We need only in windows, because that is the target production environment

FASM. Some error

Sorry new to assembly in all shapes.
I was actually doing the same thing as you are but relying on Jna natives, then just went for a simple flip to your method when I realized how short you made it.
Your asm arraysum is giving me the error only on line
global Java_JNIArraySum_computeNativeArraySum
It's probably a FASM thing? There's usually some declaring at the top, like:

format PE GUI 4.0
entry start
include 'win32a.inc'

I added this and it still brought be to the above line. Is this just a FASM thing? Sorry I know in the read me you didn't mention FASM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.