Giter Club home page Giter Club logo

compiler's Introduction

Compiler

This is a part of Java OS project. It compiles the Java Bytecode to native machine code for x86 processor.

Build

Run following command to get the source code:

git clone git://s55969da3.adsl.online.nl/jx/compiler.git

This is a NetBean projecct.

compiler's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

compiler's Issues

all programming languages to json format

JSON syntax rules are simple and consistent. Data is in name/value pairs, separated by commas. Curly braces hold objects, and square brackets hold arrays. Strings are in double quotes, and numbers are without quotes. Booleans are represented by true or false, and nulls are represented by null. Whitespace can be inserted between any tokens to improve readability

use compact arrays

the size of each element inside the arrays is fixed: 32bits. for bytes and shorts

wrong datatype on stack

org/jnode/driver/net/lance/RxDescriptor
** Compiling method getPacket
return 0
** Compiling method clearStatus
vR0.mem.set16((vR0.offset+6),-32768)
return
** Compiling method getMessageByteCount
return vR0.mem.get16((vR0.offset+8))
** Compiling method getDataBuffer
IMNewArray bcpos:4
process basic block: jx.compiler.imcode.IMBasicBlock@3ac3fd8b Bytecode 0B #1
Exception (1): jx.compiler.imcode.IMNewArray@49e4cb85 Bytecode 188
new byte[vR0.getMessageByteCount@this()]
Jul 23, 2019 1:01:21 PM jx.compiler.imcode.IMBasicBlock processBasicBlock
SEVERE: null
jx.compiler.CompileException: !!! wrong datatype on stack !!!
at jx.compiler.imcode.IMNewArray.processStack(IMNewArray.java:31)
at jx.compiler.imcode.IMBasicBlock.processBasicBlock(IMBasicBlock.java:125)
at jx.compiler.imcode.CodeContainer.readBCInstruction(CodeContainer.java:755)
at jx.compiler.imcode.CodeContainer.init(CodeContainer.java:132)
at jx.compiler.StaticCompiler.compileToDomain(StaticCompiler.java:412)
at jx.compiler.StaticCompiler.compileToDomain(StaticCompiler.java:358)
at jx.compiler.StaticCompiler.compileStatic(StaticCompiler.java:531)
at jx.compiler.StaticCompiler.(StaticCompiler.java:258)
at jx.compiler.CompileNative.compile(CompileNative.java:130)
at jx.compiler.CompileNative.compile(CompileNative.java:86)
at jx.compiler.CompileNative.main(CompileNative.java:82)

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.