Git Product home page Git Product logo

cruiser's People

Contributors

kaiserkatze avatar

Watchers

 avatar

Forkers

prashant-jonny

cruiser's Issues

Value Set Conversion

Opcode dcmpg and dcmpl requires their operands undergo value set conversion.
Please note that:

The floating-point types are float and double, which are conceptually associated
with the single-precision 32-bit and double-precision 64-bit format IEEE 754
values and operations as specified in IEEE Standard for Binary Floating-Point
Arithmetic, ANSI/IEEE Standard 754-1985 (IEEE, New York).

This should not be a problem because both Java and C/C++ applies IEEE-754 specification.

References:
[1] §2.8.3 Value Set Conversion
[2] §4.2.3. Floating-Point Types, Formats, and Values
[3] (Chinese) Intro about IEEE-754, IEEE-754R and IEEE-854

Control flow compilation

Given example

if (i > 5)
    check();
else
    note();

return 36;

javac will generates the following code:

0: iload_0
1: iconst_5
2: if_icmple         11
5: invokestatic     #2
8: goto                15
11: invokestatic   #3
14: pop
15: bipush           36
17: ireturn

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.