Re: [pure-lang-users] Swapping Symbols and Integers
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-08-11 10:54:03
|
David Baird wrote: >> Something like... code generation? :) > > Doh! I thought that was somewhere around step 5 :-P I'll have to rethink this. Well, there's a lot of stuff that can be done on the AST, but for things like peephole optimization, register allocation, constant folding, inlining of runtime routines, tail call elimination etc. you definitely need to consider the target code (which most often is an abstract assembler-like code which then gets translated to the real native code, at least nowadays). In principle, you could also design your own AST representation of the target and apply your optimizations to that, but some kinds of optimizations are pretty hairy, so why reinvent the wheel when there's already something as comprehensive as LLVM out there? > Thank you for all your generous feedback. No sweat. :) It would be cool if you could try Pure and provide some feedback on how well it works for your purposes. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |