Hi Christophe, I have been using boost msm, i have two state machines each with around 30 transitions / 4 regions , no submachine etc for now... it perfectly fits the bill on what im trying to do, thanks for the great library, one issue i face is ,the debug build takes for ever to compile and the size is very big (the optimized one with no debug symbol compiles pretty fast) and when errors happens the compiler (template barf) goes for pages and pages .. any hints on this please? thanks -raj
Hi Raj,
I have been using boost msm, i have two state machines each with around 30 transitions / 4 regions , no submachine etc for now... it perfectly fits the bill on what im trying to do, thanks for the great library, one issue i face is , the debug build takes for ever to compile and the size is very big (the optimized one with no debug symbol compiles pretty fast) and when errors happens the compiler (template barf) goes for pages and pages .. any hints on this please?
What compiler are you using? If VC, the problem could be “Enable minimal rebuild”, g++ is bad with debug, mingw even worse. I don’t know if some compiler options can help (I think I got some slight improvement by playing with –O). In the end, I avoided the problem by switching to clang (half compile time, half memory costs). Cheers, Christophe
Thanks Christophe, I'm using g++,I want to try clang but there is a big stack underneath which also need to move to clang :( Sent from my iPhone
On 10 Nov 2014, at 20:32, christophe.j.henry@gmail.com wrote:
Hi Raj,
I have been using boost msm, i have two state machines each with around 30 transitions / 4 regions , no submachine etc for now... it perfectly fits the bill on what im trying to do, thanks for the great library, one issue i face is , the debug build takes for ever to compile and the size is very big (the optimized one with no debug symbol compiles pretty fast) and when errors happens the compiler (template barf) goes for pages and pages .. any hints on this please?
What compiler are you using? If VC, the problem could be “Enable minimal rebuild”, g++ is bad with debug, mingw even worse. I don’t know if some compiler options can help (I think I got some slight improvement by playing with –O). In the end, I avoided the problem by switching to clang (half compile time, half memory costs).
Cheers, Christophe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Sent from my BlackBerry device on the Rogers Wireless Network
-----Original Message-----
From: christophe.j.henry@gmail.com
Sender: "Boost-users"
Thanks christophe, when i do nm on the binary i see big symbol for the
dispatch table running into pages, is there any way to hide this? ( i was
googling for type hiding and found this but not sure how to use this to
hide the transition table
http://www.boost.org/doc/libs/1_41_0/libs/multi_index/doc/compiler_specifics...
)
cheers
-raj
On Mon, Nov 10, 2014 at 8:32 PM,
Hi Raj,
I have been using boost msm, i have two state machines each with around 30 transitions / 4 regions , no submachine etc for now... it perfectly fits the bill on what im trying to do, thanks for the great library, one issue i face is , the debug build takes for ever to compile and the size is very big (the optimized one with no debug symbol compiles pretty fast) and when errors happens the compiler (template barf) goes for pages and pages .. any hints on this please?
What compiler are you using? If VC, the problem could be “Enable minimal rebuild”, g++ is bad with debug, mingw even worse. I don’t know if some compiler options can help (I think I got some slight improvement by playing with –O). In the end, I avoided the problem by switching to clang (half compile time, half memory costs).
Cheers, Christophe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi,
Thanks christophe, when i do nm on the binary i see big symbol for the dispatch table running into pages, is there any way to hide this? ( i was googling for type hiding and found this but not sure how to use this to hide the transition table http://www.boost.org/doc/libs/1_41_0/libs/multi_index/doc/compiler_specifics...)
The transition table is already built this way. Frankly, no, I don’t know, it might be a question for the compiler writer. I usually just strip and then sigh how it can be that VC is separating symbols from binary and gcc can’t. I’m a bit lost, is your problem compile time or binary size? With 30 states (regions do not cost much), I usually have a fast compile. Is there maybe a minimal case (without company code I mean) you can send me (privately if you prefer) so I can try? With gcc version are you using? I’ll try to take one close from this one. Cheers, Christophe
participants (4)
-
christophe.j.henry@gmail.com
-
quang.trinh@gmail.com
-
Raj
-
Raj Sambasivan