boost::spirit compilation time

M

Marcin Kalicinski

Hi All,

Does anybody has experience compiling XML parser written with boost::spirit
on gcc? The parser is based on
http://spirit.sourceforge.net/repository/applications/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
 
G

Gernot Frisch

Marcin Kalicinski said:
Hi All,

Does anybody has experience compiling XML parser written with
boost::spirit on gcc? The parser is based on
http://spirit.sourceforge.net/repository/applications/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
 
J

John Ratliff

Marcin said:
Hi All,

Does anybody has experience compiling XML parser written with boost::spirit
on gcc? The parser is based on
http://spirit.sourceforge.net/repository/applications/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
 
M

Maxim Yegorushkin

John Ratliff wrote:

[]

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

Bronek Kozicki

Maxim Yegorushkin said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top