This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Getting the name of the file to compile
- From: albino aiello <ultimanota at libero dot it>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Mon, 07 May 2007 12:04:24 +0200
- Subject: Getting the name of the file to compile
Hi all,
i'm writing a new option pass. For more reason, i have to know the name
of the file .c to compile. For example: if the user writing in the shell
the following command :
- gcc filename.c
i want to obtain the variable char* that contain the value filename.
I have seen in the file gcc.c that it exist argc and argv variables but
i have not access to they in the passes.c .
Thanks to all,
Albino