在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sdiehl/kaleidoscope开源软件地址(OpenSource Url):https://github.com/sdiehl/kaleidoscope开源编程语言(OpenSource Language):Haskell 94.1%开源软件介绍(OpenSource Introduction):A short guide to building a tiny programming language in Haskell with LLVM. Haskell LLVM TutorialRead Online: SetupYou will need GHC 7.8 or newer as well as LLVM 4.0. For information on installing LLVM 4.0 (not 3.9 or earlier) on your platform of choice, take a look at the instructions posted by the llvm-hs maintainers. With Haskell and LLVM in place, you can use either Stack or Cabal to install the necessary Haskell bindings and compile the source code from each chapter. Building with Stack (Recommended)$ stack build You can then run the source code from each chapter (starting with chapter 2) as follows: $ stack exec chapter2 Building with CabalEnsure that $ cabal sandbox init
$ cabal configure
$ cabal install --only-dependencies Then to run the source code from each chapter (e.g. chapter 2): $ cabal run chapter2 Building with makeThe source code for the example compiler of each chapter is included in the $ make chapter2
$ make chapter6 A smaller version of the code without the parser frontend can be found in the llvm-tutorial-standalone repository. The LLVM code generation technique is identical. EditingThis is an open source project, patches and corrections always welcome. To generate the HTML page: $ make tutorial.html A standalone PDF can also be generated with: $ make tutorial.pdf LicenseText is adapted from the LLVM tutorial and is subsequently licensed under the LLVM license. The Haskell source files are released under the MIT license. Copyright (c) 2013-2016, Stephen Diehl |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论