• Like

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

GHC LLVMBackend Workshop (This set of slides is just a draft)

  • 882 views
Published

http://cotocoto.jp/event/39693

http://cotocoto.jp/event/39693

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
882
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
7
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. GHC LLVMBackend Workshop May 8, 2010 Osaka, Japan Tatsuhiro Ujihisa http://ujihisa.blogspot.com/
  • 2. GHC? • The most common Haskell compiler • More features than Haskell98 specification
  • 3. LLVM? • Low Level Virtual Machine • A virtual machine for arbitrary environments • (like JVM for C)
  • 4. GHC × LLVM
  • 5. Demo
  • 6. What I did? • "fib" app on normal GHC • "fib" app on LLVM GHC • benchmarks of them
  • 7. Differences • What do they change from and to? • GHC: • Haskell -> Executable • LLVM GHC: • Haskell -> LLVM Assembly Language
  • 8. LLVM Assemby Language (1/2) • Platform-independent Assembly Language • Infinite number of (virtual) registers • All registers are referential transparent
  • 9. LLVM Assemby Language (2/2) • Can call all C functions • other features are almost same as other common assembly languages such as IA-32
  • 10. Advantage? Optimizer!
  • 11. (to be continued...)