forked from isanbard/flang
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.txt
53 lines (39 loc) · 1.78 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//===----------------------------------------------------------------------===//
// Fortran Language Family Front-end
//===----------------------------------------------------------------------===//
flang:
n. 1. A miner's two-pointed pick.
Flang is a Fortran front-end.
//===----------------------------------------------------------------------===//
// Compiling Flang (master branch)
//===----------------------------------------------------------------------===//
Flang depends on a fork of clang for some of its files. In order to compile
Flang, you'll need to fetch the clang_branch and merge it with master in your
local repository. After cloning flang, you can use the following commands to achieve this:
git fetch origin clang_branch
git checkout clang_branch
git checkout master
git merge --squash --no-commit clang_branch
git reset HEAD
//===----------------------------------------------------------------------===//
// Using flang
//===----------------------------------------------------------------------===//
Flang's driver will instruct the linker to link with the libflang runtime.
You can get libflang at https://github.com/hyp/libflangrt . Once you have libflang,
you'll need to tell flang where it is - you can use the -L option (e.g. -L~/libflang).
//===----------------------------------------------------------------------===//
// To Do List
//===----------------------------------------------------------------------===//
Short term:
* Fix lexing bugs
- Fixed form for numerical literals (i.e. ignore whitespace)
- Continuations in BOZ literals
- Others
* 'INCLUDE' which search for files in the directory of the current file first.
* Full parsing of statements
Long term:
* Flang driver (?)
* Parsing GNU modules
Longer term:
* Fortran90/95 support
* IO support.