By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,075 Members | 946 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,075 IT Pros & Developers. It's quick & easy.

boost::spirit compilation time

P: n/a
Hi All,

Does anybody has experience compiling XML parser written with boost::spirit
on gcc? The parser is based on
http://spirit.sourceforge.net/reposi...ations/xml.zip samples.

What I'm concerned of is compilation time - my current version takes about
30 minutes to compile on gcc 3.4.2 - this is completely unaccteptable. Am I
doing something wrong or is this expected with gcc? N.b. on MSVC 2005 it
compiles in less than 1 minute.

cheers,
Marcin
Oct 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"Marcin Kalicinski" <ka****@poczta.onet.pl> schrieb im Newsbeitrag
news:J7****************@newsfe1-gui.ntli.net...
Hi All,

Does anybody has experience compiling XML parser written with
boost::spirit on gcc? The parser is based on
http://spirit.sourceforge.net/reposi...ations/xml.zip
samples.

What I'm concerned of is compilation time - my current version takes
about 30 minutes to compile on gcc 3.4.2 - this is completely
unaccteptable. Am I doing something wrong or is this expected with
gcc? N.b. on MSVC 2005 it compiles in less than 1 minute.

I use boost::spirit for my precompiler and the compile time for it is
horrible. However, the created executable is lightning fast.

HTH,
Gernot
Oct 18 '05 #2

P: n/a
Marcin Kalicinski wrote:
Hi All,

Does anybody has experience compiling XML parser written with boost::spirit
on gcc? The parser is based on
http://spirit.sourceforge.net/reposi...ations/xml.zip samples.

What I'm concerned of is compilation time - my current version takes about
30 minutes to compile on gcc 3.4.2 - this is completely unaccteptable. Am I
doing something wrong or is this expected with gcc? N.b. on MSVC 2005 it
compiles in less than 1 minute.


Are you using mingw/g++? I'm fairly certain the mingw/g++ doesn't
support PCH, which may be the reason VC is so much faster. However, I
don't know if boost::spirit is using PCH or not, it's just one idea that
sprang to mind.

I find that VC is generally faster than g++ on Windows. Smaller
executables, too.

Of course 30 minutes vs 1 minute seems to be quite a difference. You are
talking about YOUR code and not the library, right?

--John Ratliff
Oct 18 '05 #3

P: n/a

John Ratliff wrote:

[]
What I'm concerned of is compilation time - my current version takes about
30 minutes to compile on gcc 3.4.2 - this is completely unaccteptable. Am I
doing something wrong or is this expected with gcc? N.b. on MSVC 2005 it
compiles in less than 1 minute.


No precompiled header will help you here. It's the grammer what makes a
compiler crawl.

Oct 18 '05 #4

P: n/a
Maxim Yegorushkin <ma***************@gmail.com> wrote:
No precompiled header will help you here. It's the grammer what makes
a compiler crawl.


yup, I can confirm that. However, once you compile, your code will be
fast (well optimized) and light (no libraries needed).
B.

Oct 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.