Giter Site home page Giter Site logo

libfortrt's Introduction

Libfortrt
================================

Libfortrt is a new implementation of the Fortran runtime library.
All of the code in libfortrt is dual licensed under the MIT license
and the UIUC License (a BSD-like license).

Libfortrt is the runtime library for fort (the Fortran frontend for LLVM,
https://github.com/llvm-fortran/fort). It can be used by any other Fortran
compiler.

Building Libfortrt
================================

> git clone git://github.com/llvm-fortran/libfortrt.git
> cd libfortrt
> mkdir build
> cd build & cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
> cd build & make
> cd build & make check
> cd build & make install

libfortrt's People

Contributors

jleidel avatar ppenzin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

ppenzin

libfortrt's Issues

lentrim misses trailing spaces

lentrim seems to return the position of the last whitespace character rather than the opposite:

template<typename T>
static size_t lentrim(const CharacterValue<T> String) {
  for(size_t I = String.Length; I > 0; I--) {
    if(isWhitespace(String.Ptr[I-1])) return I;
  }
  return String.Length;
}

This is relatively easy to reproduce with a test that would use it.

Implement lexcompare

Fort emits calls to lexcompare, but that always returns 0:

template<typename T>
static int32_t lexcompare(const CharacterValue<T> LHS,
                          const CharacterValue<T> RHS) {
  return 0;//FIXME
}

lexcompare is produced when two strings are compared usind .lt., .gt., and so on. In Fortran that requires padding shorter string with spaces before comparison.

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.