Bernardo Elayda
2008-Sep-05 03:03 UTC
[LLVMdev] Newbie question on front-end and code compaction
Hi! I'm still a newbie to LLVM, so I'm looking for guidance that will tell me the right docs to read. I'm interested in working on 2 different things. I'm interested on adding a new front end for a functional language such as Lisp. I'm also interested in helping out with compaction(making code with a small footprint). What are the right docs for me to start reading and reviewing? tia, Bernardo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080904/09c73887/attachment.html>
Erick Tryzelaar
2008-Sep-05 04:28 UTC
[LLVMdev] Newbie question on front-end and code compaction
On Thu, Sep 4, 2008 at 8:03 PM, Bernardo Elayda <belayda at gmail.com> wrote:> Hi! > > I'm still a newbie to LLVM, so I'm looking for guidance that will tell me > the right docs to read. > > I'm interested in working on 2 different things. I'm interested on adding a > new front end for a functional language such as Lisp. I'm also interested > in helping out with compaction(making code with a small footprint). What > are the right docs for me to start reading and reviewing?I'd start with the kaleidoscope tutorials, they taught me a lot about llvm: http://llvm.org/docs/tutorial/
Mike Stump
2008-Sep-05 17:06 UTC
[LLVMdev] Newbie question on front-end and code compaction
On Sep 4, 2008, at 8:03 PM, Bernardo Elayda wrote:> I'm also interested in helping out with compaction(making code with > a small footprint).People pointed out recently on the list that -Os doesn't work so well. See the email from regehr at cs.utah.edu on Aug 20 on llvmdev. You should be able to work with him to get testcases, from there you just grind through them and find why they are bigger and reduce them. Failing that, just compile up any software and compare. Should be lots of low hanging fruit.
Dale Johannesen
2008-Sep-05 17:21 UTC
[LLVMdev] Newbie question on front-end and code compaction
On Sep 5, 2008, at 10:06 AMPDT, Mike Stump wrote:> On Sep 4, 2008, at 8:03 PM, Bernardo Elayda wrote: >> I'm also interested in helping out with compaction(making code with >> a small footprint). > > People pointed out recently on the list that -Os doesn't work so > well. See the email from regehr at cs.utah.edu on Aug 20 on llvmdev. > You should be able to work with him to get testcases, from there you > just grind through them and find why they are bigger and reduce them. > Failing that, just compile up any software and compare. Should be > lots of low hanging fruit.Thread starts here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-August/016600.html The last message points out inlining and unrolling heuristics as low- hanging fruit, and I agree. But there is a lot more beyond that, particular instruction selection on x86.
Apparently Analagous Threads
- [LLVMdev] Newbie question on front-end and code compaction
- [LLVMdev] Which linux distribution required the least effort to install LLVM 2.3?
- [LLVMdev] LLVM 2.3 available as a VMware appliance
- [LLVMdev] Info on LLVM 2.3 which is available as a virutal appliance
- [LLVMdev] Noob questoin on ExecutionEngine::create