<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#333333" bgcolor="#FFFFFF">
<p>I would like to start "touching" a bit the code, trying to create
some functionalities, but I have no idea where to start, and I
will need many trials/tests... <br>
<br>
So, one thing I was expecting is fast times to try
(Modify-Compile-Run). <br>
<br>
I did: <br>
<br>
make clang <br>
and it needed like 3-4 hours. I am ok with that. <br>
<br>
Then, I add some "stupid" statement like 'int a = 3;' somewhere in
llvm/tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp
(FixitRewriter::Diag), and it needed: <br>
- <b>6.57s. to compile the target ('make clangRewriteFrontend').</b><br>
- <b>4min 36.36s to link and build clang (`make clang`).</b><br>
In both cases it spends almost all the time<b> linking</b> (first
to a static lib, then to the clang binary itself). <br>
<br>
This is really a lot of time to try bit a bit without knowledge of
the whole clang, compiling process, etc. Waiting up to is just
really time consuming. <br>
<br>
What would you do to try the modifications faster? <br>
<br>
Any recomendation/blog/guide to follow as a starter trying to
modify a bit the codebase of clang? </p>
</body>
</html>