Commit 9e6b2f69 authored by Claes Sjofors's avatar Claes Sjofors

Documentation, new dummy archives added to .opt file

parent adaa7517
...@@ -1730,7 +1730,7 @@ This file (if it exists) will be used as the link options when I build the plc-p ...@@ -1730,7 +1730,7 @@ This file (if it exists) will be used as the link options when I build the plc-p
Proview by default links against some libraries and object-files. If you have your own Proview by default links against some libraries and object-files. If you have your own
opt-file you need to include these. A default opt-file would look like: opt-file you need to include these. A default opt-file would look like:
<c>$pwr_obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy <c>$pwr_obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy
Add your own libraries at will. The syntax to use is the sytax for ld (The GNU linker). Proview Add your own libraries at will. The syntax to use is the sytax for ld (The GNU linker). Proview
will create a template option file .opt_template that can be renamed to .opt and used as a template. will create a template option file .opt_template that can be renamed to .opt and used as a template.
...@@ -2196,7 +2196,8 @@ plc_'nodename'_'qbus'.opt, for example ...@@ -2196,7 +2196,8 @@ plc_'nodename'_'qbus'.opt, for example
The following line is inserted into this file The following line is inserted into this file
<c>$pwr_obj/rt_io_user.o $pwrp_obj/ra_myfunction.o -lpwr_rt -lpwr_usbio_dummy <c>$pwr_obj/rt_io_user.o $pwrp_obj/ra_myfunction.o -lpwr_rt -lpwr_usbio_dummy \
<c>-lpwr_usb_dummy -lpwr_pnak_dummmy
We kan now build the node and startup Proview runtime. We kan now build the node and startup Proview runtime.
...@@ -6830,7 +6831,7 @@ e.g. plc_mynode_0999.opt. The content of the file is input to the linker, ld, an ...@@ -6830,7 +6831,7 @@ e.g. plc_mynode_0999.opt. The content of the file is input to the linker, ld, an
add the modules of the plc-code. In the example below these modules are placed in the archive add the modules of the plc-code. In the example below these modules are placed in the archive
$pwrp_lib/libpwrp.a $pwrp_lib/libpwrp.a
<c>$pwr_obj/rt_io_user.o -lpwrp <c>$pwr_obj/rt_io_user.o -lpwrp -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy
......
...@@ -1718,7 +1718,7 @@ Den ...@@ -1718,7 +1718,7 @@ Den
länkningen av plc-programmet. Några bibliotek och objektsmoduler måste finnas med, och länkningen av plc-programmet. Några bibliotek och objektsmoduler måste finnas med, och
en default option-fil ska se ut så här: en default option-fil ska se ut så här:
<c>$pwr_obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy <c>$pwr_obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy
Till detta adderas de bibliotek och moduler som behövs. Syntaxen är den som gäller för ld Till detta adderas de bibliotek och moduler som behövs. Syntaxen är den som gäller för ld
(The GNU linker). Proview genererar en template option-fil .opt_template som kan användas som (The GNU linker). Proview genererar en template option-fil .opt_template som kan användas som
...@@ -2176,7 +2176,8 @@ plc_'nodename'_'qbus'.opt, t ex ...@@ -2176,7 +2176,8 @@ plc_'nodename'_'qbus'.opt, t ex
I denna läggs följande rad in I denna läggs följande rad in
<c>$pwr_obj/rt_io_user.o $pwrp_obj/ra_myfunction.o -lpwr_rt -lpwr_usbio_dummy <c>$pwr_obj/rt_io_user.o $pwrp_obj/ra_myfunction.o -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy \
<c> -lpwr_pnak_dummy
Vi kan nu bygga noden och starta Proview runtime. Vi kan nu bygga noden och starta Proview runtime.
...@@ -6744,7 +6745,7 @@ plc_mynode_0999.opt. Inneh ...@@ -6744,7 +6745,7 @@ plc_mynode_0999.opt. Inneh
lägger även in modulerna för plc-koden. I exemplet nedan antas att dessa moduler ligger i lägger även in modulerna för plc-koden. I exemplet nedan antas att dessa moduler ligger i
arkivet $pwrp_lib/libpwrp.a. arkivet $pwrp_lib/libpwrp.a.
<c>$pwr_obj/rt_io_user.o -lpwrp <c>$pwr_obj/rt_io_user.o -lpwrp -lpwr_rt -lpwr_usbio_dummy -lpwr_usb_dummy -lpwr_pnak_dummy
</topic> </topic>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment