Your SlideShare is downloading. ×
GHC LLVMBackend Workshop (This set of slides is just a draft)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

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

906

Published on

http://cotocoto.jp/event/39693

http://cotocoto.jp/event/39693

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
906
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
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 LevelVirtual 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...)

×