Are there examples on doing the following? 1) Creating stand alone executables 2) Making system calls 3) Creating debug info Obviously clang does all this, but I was hoping for something less complex. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110512/ba62fcfc/attachment.html>
On Thu, May 12, 2011 at 3:57 PM, Hans Stimer <hans.stimer at gmail.com> wrote:> Are there examples on doing the following? > 1) Creating stand alone executablesYou can try looking at tools/llc/llc.cpp for how to make an object file from IR... as for making an executable, I would suggest actually just invoking clang, since it knows how to call the system linker.> 2) Making system callsCall syscall()? I'm not completely sure what you're asking.> 3) Creating debug infoI don't think we have any good examples for debug info... http://llvm.org/docs/SourceLevelDebugging.html might be helpful, though. In general, docs are available at http://llvm.org/docs/SourceLevelDebugging.html . -Eli
On Thu, May 12, 2011 at 4:44 PM, Eli Friedman <eli.friedman at gmail.com> wrote:> On Thu, May 12, 2011 at 3:57 PM, Hans Stimer <hans.stimer at gmail.com> wrote: >> Are there examples on doing the following? >> 1) Creating stand alone executables > > You can try looking at tools/llc/llc.cpp for how to make an object > file from IR... as for making an executable, I would suggest actually > just invoking clang, since it knows how to call the system linker. > >> 2) Making system calls > > Call syscall()? I'm not completely sure what you're asking. > >> 3) Creating debug info > > I don't think we have any good examples for debug info... > http://llvm.org/docs/SourceLevelDebugging.html might be helpful, > though. > > In general, docs are available at > http://llvm.org/docs/SourceLevelDebugging.html .Err, make that http://llvm.org/docs/ . -Eli
Forgot to CC the list again. :-( ----- Forwarded Message -----> From: Samuel Crow <samuraileumas at yahoo.com> > To: Hans Stimer <hans.stimer at gmail.com> > Cc: > Sent: Friday, May 13, 2011 11:08 AM > Subject: Re: [LLVMdev] Docs/examples > > It's being worked on: > > Slides: > http://www.llvm.org/devmtg/2010-11/Spencer-ObjectFiles.pdf > Actual presentation: > http://www.llvm.org/devmtg/2010-11/videos/Spencer_ObjectFiles-desktop.mp4 > >> ________________________________ >> From: Hans Stimer <hans.stimer at gmail.com> >> To: llvmdev at cs.uiuc.edu >> Sent: Thursday, May 12, 2011 5:57 PM >> Subject: [LLVMdev] Docs/examples >> >> >> Are there examples on doing the following? >> >> >> 1) Creating stand alone executables >> 2) Making system calls >> 3) Creating debug info >> >> >> Obviously clang does all this, but I was hoping for something less complex. >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >> >