overview motivation scala on llvm challenges interesting subsets

14
on LLVM Roman Stoffel 2011

Upload: ernesto-brummell

Post on 01-Apr-2015

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Roman Stoffel 2011

Page 2: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Overview

• Motivation• Scala on LLVM• Challenges• Interesting Subsets

Page 3: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Motivation

Page 4: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Motivation

Page 5: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Scala on LLVM

Page 6: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Challenges: Must-Have

Garbage Collector

Page 7: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Challenges: Optional

Threading

Reflection

Debugging Code Loading

Page 8: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Challenges: Code Loading

Page 9: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Challenges: Code Loading

Page 10: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Scala Specific Optimisations

• Improving Function Handling– Get Rid of Object Overhead– Inlining

Page 11: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Interesting Subsets

Tiny Scala On

Small Systems

Compiled Scala Scala In Flavors

Page 12: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Scala in Flavors

Page 13: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVM

Scala in Flavors

• Run the ‘regular’ Code on CPU• Run data parallel on GPU or other dedicated

hardware• Issues– Interchanging Data– Vectorisation– Memory-Management

Page 14: Overview Motivation Scala on LLVM Challenges Interesting Subsets

on LLVMThe End