This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re : Re : [Gimple] look for gcc command to start compiling from GIMPLE


Hello,

What about using -x options ?

I red in the GCC 4.4.2 manual that  " If you only want some of the stages of compilation, you can use â-xâ (or filename suffixes)
to tell gcc where to start, and one of the options â-câ, â-Sâ, or â-Eâ to say where gcc is to stop "

but -x accept only this list of langauge:

Possible values for language
          are:
                  c c-header c-cpp-output
                  c++ c++-header c++-cpp-output
                  objective-c objective-c-header objective-c-cpp-output
                  objective-c++ objective-c++-header objective-c++-cpp-output
                  assembler assembler-with-cpp
                  ada
                  f77 f77-cpp-input f95 f95-cpp-input
                  java

I guess that  if assembler language is one element of the list above, we can tell compiler to start from linking pass: do not run "as" (assembler) nor "cpp" (preprocessor). 
So (as an alternative) can we add Gimple to this list of languages and telling compiler to not run cpp (preprocessor) ? Am I right ?

another alternative is to proceed just like  we want to add a Gimple GCC front. end.  I red that building a GCC front end for any langauge we choose is not a tricky task.

>From your experience handling those forms, can you tell me, are those alternatives feasible or I am trying to invent sth wrong and not interesting at all (cause I think it is a good idea if gcc users can chose the input file they want and tell compiler where to start:. just like -E -s and -c that tell compiler where to stop).

Thank you very much.

Asma.




----- Message d'origine ----
De : Diego Novillo <dnovillo@google.com>
à : charfi asma <charfiasma@yahoo.fr>
Cc : gcc-help@gcc.gnu.org
Envoyà le : Jeu 28 Janvier 2010, 16 h 43 min 57 s
Objet : Re: Re : [Gimple] look for gcc command to start compiling from GIMPLE

On Thu, Jan 28, 2010 at 10:26, charfi asma <charfiasma@yahoo.fr> wrote:

> I asked for a gcc option to compile Gimple file directly (I have no file.c) I have file.gimple and I
> want to tell compiler: start your job from converting gimple to ssa and continue until reaching
> binary code.

Ah, no.  Nothing of the sort.  I've had thought of creating a text
representation for gimple that could be used as input to the compiler,
but so far is just a glimmer of thought, no concrete plans nor time to
implement them.


Diego.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]