Coder Social home page Coder Social logo

Comments (1)

ouankou avatar ouankou commented on July 22, 2024

After generating the new source files, a few more steps are needed to produce the final executable.
There are three options.

  1. Use a wrapper script within the REX compiler:
    REX compiler will compile the new source files with correct order and parameters. Users won't see the complicated procedure but the final executable.
    The disadvantage is that if users would like to compile the new source files, they may not know how to do that because the details are hidden from them.

  2. Create a Makefile to produce the executable:
    We put the detailed steps for compilation in the Makefile. Users can get the executable by themselves. It's easier for them to modify the new source files and compile them later.
    The drawback is that extra file is created and the dependencies inside the Makefile are hard-coded based on the situation while generating the Makefile. If users go to another machine or the configuration of REX compiler is changed, the Makefile may not work anymore.
    Another thing is that the Makefile may need a unique name because two source files in the same folder will overwrite others' Makefile. When users use the Makefile, they have to specify the filename of Makefile make -f <filename> instead of simply running make.

  3. Combine option 1 and 2 together.

from rexompiler.

Related Issues (20)

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.