[LLVMdev] llvmc for PIC16

Mikhail Glushenkov the.dead.shall.rise at gmail.com
Wed Jul 1 18:17:25 PDT 2009


Hi Sanjiv,

On Wed, Jul 1, 2009 at 7:02 PM, Sanjiv Gupta<sanjiv.gupta at microchip.com> wrote:
> I found out the problem. Looks like I can not rely on argv[0] to contain the
> full path of the executable always.

Yeah, that's what I was thinking.

> Can I rely on:
> static Path GetMainExecutable(const char *argv0, void *MainAddr);

Clang relies on it. According to

http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp

MainAddr can be any symbol in the binary.

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments



More information about the llvm-dev mailing list