Skip to content

Commit 241f34c

Browse files
committed
ImportC: add preprocessor instructions
1 parent 931583c commit 241f34c

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

spec/importc.dd

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,41 @@ $(H2 $(LNAME2 preprocessor, Preprocessor))
6161
$(P ImportC does not have a preprocessor. It is designed to compile C
6262
files after they have been first run through the C preprocessor.)
6363

64-
$(H3 Digital Mars C Preprocessor)
64+
$(H3 $(LNAME2 spp,Digital Mars C Preprocessor sppn.exe))
6565

66-
$(H3 Gnu C Preprocessor)
66+
$(P $(LINK2 https://www.digitalmars.com/ctg/sc.html, $(TT sppn.exe)) runs on Win32 and is invoked as:)
6767

68-
$(H3 Clang C Preprocessor)
68+
$(CONSOLE
69+
sppn file.c
70+
)
71+
72+
$(P and the preprocessed output is written to $(TT file.i).)
73+
74+
$(H3 $(LNAME2 gcc-preprocessor, Gnu C Preprocessor))
75+
76+
$(P The $(LINK2 https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html, Gnu C Preprocessor) can be invoked as:)
77+
78+
$(CONSOLE
79+
gcc -E file.c > file.i
80+
)
81+
82+
$(H3 $(LNAME2 clang-preprocessor, Clang C Preprocessor))
6983

70-
$(H3 Warp C Preprocessor)
84+
$(P The $(LINK2 https://freecompilercamp.org/clang-basics/, Clang Preprocessor) can be invoked as:)
85+
86+
$(CONSOLE
87+
clang -E file.c > file.i
88+
)
89+
90+
$(H3 $(LNAME2 dmpp, dmpp C Preprocessor))
91+
92+
$(P The $(LINK2 https://www.DigitalMars/dmpp, dmpp C Preprocessor) can be invoked as:)
93+
94+
$(CONSOLE
95+
dmpp file.c
96+
)
7197

98+
$(P and the preprocessed output is written to $(TT file.i).)
7299

73100
$(H2 $(LNAME2 preprocessor-directives, Preprocessor Directives))
74101

0 commit comments

Comments
 (0)