Coder Social home page Coder Social logo

Comments (2)

zaskar9 avatar zaskar9 commented on August 27, 2024

I think I never fully introduced that option. At some point, I want to make the command-line interface of oberon-lang as close to clang and gcc (but not msvc 😎) as possible. As part of this change, I'm planning to retire the --filetype option and achieve the same by supporting the following options.

  • option -c (compile) will output an object file (*.o or *.obj)
  • option -S (assembly) will output an assembly file (*.s)
  • option -r (run) will jit and run the input module
  • no option will compile and link the file

Option -o will override the default name of the output file and, additionally, --emit-llvm will write a *.bc file in compile mode and a *.ll file in assembly mode.

Thus far the plan. Apart from introducing some of these options, I never implemented this functionality as the compiler currently does not support the full pipeline (including linking). Your fix seems fine for the time being!

from oberon-lang.

tenko avatar tenko commented on August 27, 2024

Change implemented in pull request #19

from oberon-lang.

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.