Giter VIP home page Giter VIP logo

ugbasic's People

Contributors

dinoflorenzi avatar samuel-devulder avatar spotlessmind1975 avatar

Stargazers

 avatar

ugbasic's Issues

Peephole: relocate variables

We shall collect info about temporaries during peephole analysis:

  • name
  • size of temporary
  • number of time it is read
  • number of time it is written
  • flag indicated if it was inlined
  • flag indicating it is moved to direct page

Inline temporaries inside code

When peephole first finds CMPX _Ttmp<num> add _Ttmp<num> equ *-2 right after so that _Ttmp<num> is now inlined in the code. We must check that the temporary is 2bytes, and remove its previous definition

This makes code:

  • shorter
  • faster
  • auto-modifiable, but this isn't an issue for mc6809.

Remove declaration of Unread temporaries

This reduces memory footprint

Move temporaries to direct page

Sort collected temporaries by nums of Read+Write, and if enough room remains in direct page (how to know this?), move top used temporaries in there. Then in code replace all extended access by direct page access. This reduces the memory footprint and makes the code run faster.

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.