Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Forte build size
Forte build size [message #1779635] Wed, 10 January 2018 14:31 Go to next message
Michael G. is currently offline Michael G.Friend
Messages: 10
Registered: December 2017
Junior Member
Hi 4Diac Team,

i have a questions about the buildsize from forte as posix.
The size of my build is 10MB now,
i have removed the "-g" entries on C_FLAGS_DEBUG, and add "-O3" on C-FLAGS

My forte buildsize from 9M1 is 1,6MB but with the same CMAKE Values have my 9M2 more then 10MB.

Maybe who has a tip for me what i´m doing wrong.
Re: Forte build size [message #1779656 is a reply to message #1779635] Wed, 10 January 2018 19:51 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 454
Registered: January 2014
Senior Member
Hi,

this is quite strange. What does the size command (in your case arm-linux-gnueabihif-size) gives you as output. What you you use the arm-linux-gnueabihif-strip command to remove the debug symbols (i.e., arm-linux-gnueabihif-strip -S forte)?
Re: Forte build size [message #1779660 is a reply to message #1779656] Wed, 10 January 2018 21:05 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 454
Registered: January 2014
Senior Member
I spent some more thinking on the problem. I noticed that there is a hardecoded -ggdb in line 35 of /src/arch/posix/CMakeList.txt. I think this could cause your issue.
Re: Forte build size [message #1779676 is a reply to message #1779660] Thu, 11 January 2018 05:47 Go to previous messageGo to next message
Michael G. is currently offline Michael G.Friend
Messages: 10
Registered: December 2017
Junior Member
Hello Mr. Zoitl,

thanks for this info!
I have adjusted the entry and now the build have a size from ~1,3MB


in line 35 of /src/arch/posix/CMakeList.txt
--- forte_add_definition("-W -Wall -Wextra -Woverloaded-virtual -Wconversion -DFORTE_LITTLE_ENDIAN -ggdb")
+++ forte_add_definition("-W -Wall -Wextra -Woverloaded-virtual -Wconversion -DFORTE_LITTLE_ENDIAN")

This make my tests easier, the builds are faster and the -tftp upload to my TestPLC runs faster... but i have less time for coffee ;)


Thank you very much!
best regards
Michael
Re: Forte build size [message #1781466 is a reply to message #1779676] Wed, 07 February 2018 14:54 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 454
Registered: January 2014
Senior Member
Hi,

thanks for pointing this out. I know we added this a convenience for testing and debugging Forte but it should not be forced on everybody. A better practice is to add this flag in the specific cmake configuration or even better via specific cmake build types (e.g., release, debug). I created an issue in bugzilla [1] based on this discussion.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=530840
Re: Forte build size [message #1781595 is a reply to message #1781466] Fri, 09 February 2018 07:46 Go to previous messageGo to next message
Michael G. is currently offline Michael G.Friend
Messages: 10
Registered: December 2017
Junior Member
thanks, the entry is still in the RC1
Re: Forte build size [message #1781607 is a reply to message #1781595] Fri, 09 February 2018 10:56 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 454
Registered: January 2014
Senior Member
Yes I'm sorry but I forgot to fix it for RC1. But it will be in RC2.
Previous Topic:FBRT/UI/HMI in 1.9.0
Next Topic:Powerlink And IEC61499 FB
Goto Forum:
  


Current Time: Wed Feb 21 08:11:06 GMT 2018

Powered by FUDForum. Page generated in 0.01907 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software