473,394 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

boost::spirit compilation time

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
4 2853

"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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ingo Nolden | last post by:
Hi, I am using spirit 1.31 I have been trying the following example from the spirit docs. I tried it with int and double neither works: vector<int> v; rule<> r = list_p(int_p, ch_p(',')); ...
4
by: Evan Carew | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anyone familliar with Boost's Spirit library? I was trying to get it to work with my g++ 2.96 & it kept barfing pages & pages of errors. I guess...
1
by: Alf P. Steinbach | last post by:
Microsoft Visual C++ warning C4267 (the number is not a typo) can occur e.g. when compiling Boost Spirit, or when doing std::size_t x = 0; std::cout << x; when compiled with 64-bit...
3
by: Paul van Hagen | last post by:
Hello, I've been doing some research as to ways to optimise our parsing and evaluation of mathematical expressions and came across the spirit template library as part of the boost library. It...
13
by: krbyxtrm | last post by:
hi, i have problem implemting a string parser that parser comman delimited string: "str1,str2,str3" INTO: 1. str1 2. str2 3. str3 *also strings are of any string (no specific string/keyword)
3
by: =?ISO-8859-2?Q?Miros=B3aw?= Makowiecki | last post by:
How do it's by next of boost.spirit library it are not discrimitation a letter size that a small letters and big letters it are not discrimitation? I'm know how write s small parser by next of...
3
by: Travis | last post by:
I'm trying to figure out how to use Boost? For example, I'd like to use the is_equal function to test two strings but I can't figure out exactly what to include or how to call the method. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.