Week 10/46
Exercises on optimization
- Consider the following two proposals for new peephole patterns.
Are they sound? How would those that are sound look as C-code?
Would they ever be relevant?
-
Replace
ldc_string "..."
dup
ifnull L
by
ldc_string "..."
- Replace
return
<<anything>>
by
return
- Study and discuss the contents of the WIG run-time library
runwig.c.
- Discuss general aspects of WIG code generation.
- What kinds of optimizations would be relevant for WIG programs?
- Study the code for optimizing JOOS programs.
|