Giter Site home page Giter Site logo

chen4432 / javassembly Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pyvesb/javassembly

0.0 1.0 0.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%

javassembly's Introduction

JavAssembly

A simple example showing how assembly language can be called from Java using the Java Native Interface (JNI). The native function sums the elements of an array of integers and returns the result as a long.

Getting started

โœ”๏ธ Requirements

To compile and run this project, you will need:

  • the JDK
  • an assembler such as NASM or Yasm
  • a compiler such as GCC, Clang or MinGW-w64

The example and build scripts can easily be modified to accommodate other assembler or compiler requirements.

๐Ÿ’ฟ Running the code

Simply use the following commands:

git clone https://github.com/PyvesB/javassembly.git
cd JavAssembly
#Linux or macOS
./build nasm
#Windows
build nasm
java JNIArraySum

๐ŸŒŽ Useful links

The following pages may be of interest:

Contributing

$ code

Want to make JavAssembly better, faster, stronger? Contributions are more than welcome, open a pull request and share your code! Simply fork the repository by clicking on the icon on the top right of this page and you're ready to go!

๐Ÿ’ฌ Support

Thought of a cool idea? Found a problem or need some help? Simply open an issue!

โญ Thanks

Find the project useful, fun or interesting? Star the repository by clicking on the icon on the top right of this page!

License

MIT License

javassembly's People

Watchers

 avatar

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.