Coder Social home page Coder Social logo

glegris / mir2j Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vnmakarov/mir

0.0 0.0 0.0 39.66 MB

An attempt to write a MIR (Medium Internal Representation) to Java translator

License: MIT License

Shell 0.31% C 97.86% Makefile 0.74% CMake 0.19% Java 0.89%

mir2j's People

Contributors

ashwin-elangovan avatar bspeice avatar corona10 avatar dibyendumajumdar avatar dm1try avatar edubart avatar eliphatfs avatar glegris avatar hacklinjiuyue avatar happyfacade avatar jwhere avatar kray-g avatar logzero avatar lydiandy avatar michaelforney avatar palkan avatar rurban avatar timgates42 avatar vnmakarov avatar xujuntwt95329 avatar

mir2j's Issues

Support multiple return values

When calling functions passing structures by value, the following behavior has been observed:

If the size of the structure is less than 16 bytes, then c2mir generates functions which return 2 values of 8 bytes to avoid allocating a block of memory on the stack.

If the size of the structure is greater than 16 bytes, c2mir allocates a memory block on the stack in which the values of the structure are written.

Until this problem is fixed, C source code should be modified so that structures are always larger than 16 bytes (ugly)

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.