Hi, David, I like this idea, but I am working with embedded systems. I can not set the environment variable embedded in some of these. I created a new command in gcc/common.opt, but I can't access the value of corresponding variable (in my case the variable host_ip_adress) Thanks, Harry 2011/8/3 David Hagood <david.hagood@xxxxxxxxx>: > On Wed, 2011-08-03 at 00:09 -0300, Harry Trinta wrote: >> Sorry, Ian, but I didn't understand your example. >> >> Look what I need: >> >> I'm developing a feature that sends gcov information coverage to a >> remote host, via sockets. > It sounds like you are modifying gcov itself. How about using an > environment variable? > > You'd do something like > > GCOV_REMOTE_IP=10.0.0.1 gcc -o foo foo.c > > Then gcov can pick that environment variable up from envp[]. > > No need to bother GCC with the variable. > > >