[LLVMdev] llvmc for PIC16
Sanjiv Gupta
sanjiv.gupta at microchip.com
Mon Jun 29 09:36:42 PDT 2009
Mikhail Glushenkov wrote:
> Hi Sanjiv,
>
> 2009/6/18 Sanjiv Gupta <sanjiv.gupta at microchip.com>:
>
>> Hi Mikhail,
>> Thanks for your wonderful help so far. I have few more questions to ask:
>>
>> How do I modify the driver to pick tools from where the driver itself
>> resides, rather than from the PATH?
>> Do I need to write some C++ code to customize such behaviors?
>>
>
> Yes, this is what hooks are for. You're supposed to change the
> cmd_line property to something like this:
>
> (cmd_line "$CALL(PrependCustomizedPath, 'toolname') --tool --options")
>
> The PrependCustomizedPath function above is implemented in C++ (just
> drop a .cpp file into the plugin directory).
>
>
Hi Mikhail,
I want to retrieve the value of argv[0] (which was passed to main
function of the driver) in PrependCustomizedPath.
Do we have some standard name for argv[0] in tablegen?
- Sanjiv
More information about the llvm-dev
mailing list