2010-02-05 4 views

Répondre

2

Oui, vous pouvez le faire avec l'option -C. Par exemple.

gcc -C -E myfile.c 
4

GCC dispose de l'option -C pour conserver les commentaires.

`-C' 
    Do not discard comments. All comments are passed through to the 
    output file, except for comments in processed directives, which 
    are deleted along with the directive. 

    You should be prepared for side effects when using `-C'; it causes 
    the preprocessor to treat comments as tokens in their own right. 
    For example, comments appearing at the start of what would be a 
    directive line have the effect of turning that line into an 
    ordinary source line, since the first token on the line is no 
    longer a `#'. 
2

man gcc et utiliser /C (barre oblique, espace, tiret, capitcal C) pour faire moins (ce qui est probablement votre programme de téléavertisseur) rechercher l'option -C, utilisez n pour rechercher à nouveau (la description est le 3ème hit). Les options connexes sont à la fois au-dessus et au-dessous.