size of own hal comp > 90kb
16 Jul 2014 19:33 #48842
by CNC-Willi
size of own hal comp > 90kb was created by CNC-Willi
Dear friends,
With the tool comp the easiest rt-components become very big. Never less than 80 kb.
A simple example from the docu.
compile with: comp --install constant.comp
The size of the result file constant.ko is >80kb. More complicated components in rtai/modules/linixcnc have max. 7-8kb.
What do I make wrong?
Thank You
Steffen
With the tool comp the easiest rt-components become very big. Never less than 80 kb.
A simple example from the docu.
component constant;
pin out float out;
param r float value = 1.0;
function _;
license "GPL"; // indicates GPL v2 or later
;;
FUNCTION(_) { out = value; }
compile with: comp --install constant.comp
The size of the result file constant.ko is >80kb. More complicated components in rtai/modules/linixcnc have max. 7-8kb.
What do I make wrong?
Thank You
Steffen
Please Log in or Create an account to join the conversation.
16 Jul 2014 20:38 #48843
by ArcEye
Replied by ArcEye on topic size of own hal comp > 90kb
Hi
What version of Linuxcnc are you using?
I am using MachineKit (eq~ 2.7)
compiling for rtai I get 6239 bytes
compiling for rt-preempt I get 10460 bytes
I have seen comp produce huge files when trying to use it to build stuff in the source tree, but not stand alone components
regards
What version of Linuxcnc are you using?
I am using MachineKit (eq~ 2.7)
compiling for rtai I get 6239 bytes
compiling for rt-preempt I get 10460 bytes
I have seen comp produce huge files when trying to use it to build stuff in the source tree, but not stand alone components
regards
Please Log in or Create an account to join the conversation.
16 Jul 2014 22:29 #48847
by CNC-Willi
Replied by CNC-Willi on topic size of own hal comp > 90kb
I am using 2.63.
6239 bytes...
do you compile with comp?
How I make pure rtai components, respectively what I must change in source for stand alone components?
regards
6239 bytes...
![:blink: :blink:](/media/kunena/emoticons/blink.png)
How I make pure rtai components, respectively what I must change in source for stand alone components?
regards
Please Log in or Create an account to join the conversation.
17 Jul 2014 16:58 #48873
by ArcEye
You will have to explain, there is no 2.6.3, there is a pre-release beta of 2.6
www.linuxcnc.org/index.php/english/forum...-pre1-released#46814
or perhaps you have an old version of the master when it was 2.6~pre ?
I am just using a RIP of effectively what is 2.7~pre and the command comp --compile constant.comp
(only --compile instead of --install because I don't want it on my system)
regards
Replied by ArcEye on topic size of own hal comp > 90kb
I am using 2.63.
You will have to explain, there is no 2.6.3, there is a pre-release beta of 2.6
www.linuxcnc.org/index.php/english/forum...-pre1-released#46814
or perhaps you have an old version of the master when it was 2.6~pre ?
I am just using a RIP of effectively what is 2.7~pre and the command comp --compile constant.comp
(only --compile instead of --install because I don't want it on my system)
regards
Please Log in or Create an account to join the conversation.
17 Jul 2014 18:35 #48880
by CNC-Willi
Replied by CNC-Willi on topic size of own hal comp > 90kb
thank you...
sorry, i mean 2.6.0-pre3. But I had the problem already under 2.5.4. I have installed Ubuntu 10.04 "Lucid Lynx" LTS from CD and update to 2.5.4 and now to 2.6.0. On different PC's, everywhere the same effect.
If you have other ideas?
Regards
sorry, i mean 2.6.0-pre3. But I had the problem already under 2.5.4. I have installed Ubuntu 10.04 "Lucid Lynx" LTS from CD and update to 2.5.4 and now to 2.6.0. On different PC's, everywhere the same effect.
If you have other ideas?
Regards
Please Log in or Create an account to join the conversation.
17 Jul 2014 19:40 #48889
by andypugh
I wonder if debugging is on? ( -g flag gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html#SEC9 )
Replied by andypugh on topic size of own hal comp > 90kb
If you have other ideas?s
I wonder if debugging is on? ( -g flag gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html#SEC9 )
Please Log in or Create an account to join the conversation.
17 Jul 2014 22:17 - 17 Jul 2014 22:20 #48893
by CNC-Willi
Replied by CNC-Willi on topic size of own hal comp > 90kb
hello andypugh,
This was an important tip. I have changed the following line in usr/share/linuxcnc/Makefile.modinc
from: RTFLAGS := -Os -g -I. -I/usr/realtime-2.6.32-122-rtai/include $(RTFLAGS) -DRTAPI -D_GNU_SOURCE -Drealtime
to: RTFLAGS := -Os -I. -I/usr/realtime-2.6.32-122-rtai/include $(RTFLAGS) -DRTAPI -D_GNU_SOURCE -Drealtime
Now, the output filesize with comp --compile constant.comp is 4,7kb![:woohoo: :woohoo:](/media/kunena/emoticons/w00t.png)
Why is the default parameter debugging on? If I have a wrong version?
I wonder if debugging is on?
This was an important tip. I have changed the following line in usr/share/linuxcnc/Makefile.modinc
from: RTFLAGS := -Os -g -I. -I/usr/realtime-2.6.32-122-rtai/include $(RTFLAGS) -DRTAPI -D_GNU_SOURCE -Drealtime
to: RTFLAGS := -Os -I. -I/usr/realtime-2.6.32-122-rtai/include $(RTFLAGS) -DRTAPI -D_GNU_SOURCE -Drealtime
Now, the output filesize with comp --compile constant.comp is 4,7kb
![:woohoo: :woohoo:](/media/kunena/emoticons/w00t.png)
Why is the default parameter debugging on? If I have a wrong version?
Last edit: 17 Jul 2014 22:20 by CNC-Willi.
Please Log in or Create an account to join the conversation.
17 Jul 2014 22:26 #48894
by andypugh
So you can debug your modules, and the difference in size probably doesn't really matter for most people.
This is how to use the information from the -g flag:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...9ed80137052fe685427c
Replied by andypugh on topic size of own hal comp > 90kb
Why is the default parameter debugging on? If I have a wrong version?
So you can debug your modules, and the difference in size probably doesn't really matter for most people.
This is how to use the information from the -g flag:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...9ed80137052fe685427c
Please Log in or Create an account to join the conversation.
18 Jul 2014 15:56 - 18 Jul 2014 15:59 #48924
by CNC-Willi
Replied by CNC-Willi on topic size of own hal comp > 90kb
Hello andypugh,
I have already understood this. But why is this only, per default, with my Linuxcnc?
Other peoples do not have this problem?
For whatever reason, i am happy. Thank you!
Regards
So you can debug your modules
I have already understood this. But why is this only, per default, with my Linuxcnc?
Other peoples do not have this problem?
For whatever reason, i am happy. Thank you!
Regards
Last edit: 18 Jul 2014 15:59 by CNC-Willi.
Please Log in or Create an account to join the conversation.
Time to create page: 0.145 seconds