View previous topic :: View next topic |
Author |
Message |
StamK
Joined: 12 Oct 2016 Posts: 159
|
Posted: Sun Oct 16, 2016 11:55 pm Post subject: insert command for SLINK64 |
|
|
Would it be possible to ask for the insert command (inserting other scripts into current script) to be added to the features for the next release? It is something we are using really frequently at the moment with the myriad of files...
Thanks |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2560 Location: Sydney
|
Posted: Mon Oct 17, 2016 1:34 am Post subject: |
|
|
I am not familiar with your request, but could it take the form of:
Link with:
slink64 @load_list.txt
Where load_list.txt could look like:
lo main.obj
lo sub1.obj
@load_parta.txt
@load_partb.txt
@load_libraries.txt
map plot.map
file plot.exe
If this is the functionality you are suggesting, it could be useful
Alternatively we could have a library/archive manager for slink64 and so have:
le \libraries\liba.lib
etc
Your suggestion does look good. perhaps even both ?
John |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Mon Oct 17, 2016 6:45 am Post subject: |
|
|
It is already possible to provide an "inf" file on the SLINK64 command line.
Within a Fortran program you can use
INCLUDE "filename"
What is the context of this request? |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2560 Location: Sydney
|
Posted: Mon Oct 17, 2016 11:40 pm Post subject: |
|
|
Paul,
The two alternatives I have outlined could improve SLINK64.
1) Is there a timeline for creating/supporting .lib files with slink64 ? (or have I missed that it is already available ?)
2) The idea of @file inside the "inf" file does have some merit, especially if .lib files are a way off. This could be an easy patch, which would provide a similar functionality to .lib, especially if @tree_name is supported.
John |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Tue Oct 18, 2016 7:07 am Post subject: |
|
|
John
I will add these two suggestions to the wish list. The wish list doesn't have an associated public time line.
As an alternative to a lib, I have suggested creating an obj file from a master source file containing only INCLUDE statements. |
|
Back to top |
|
|
StamK
Joined: 12 Oct 2016 Posts: 159
|
Posted: Tue Oct 18, 2016 11:39 am Post subject: |
|
|
Sorry, what I meant was something like this
Quote: |
archive
map
insert w_objs.txt
lo app_main.dll
;exportall
file llib.dll |
where archive creates a lib file (together with the dll), and insert appends another script file.
Thanks |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Tue Oct 18, 2016 1:15 pm Post subject: |
|
|
One way to do that might be to use a resource script.
You might be able to use the SRC compiler with a script containing the line
ID RCDATA "filename"
You may need to find the value of RCDATA. ID could be a number the that you choose. I have not tried this so it may not work. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2828 Location: South Pole, Antarctica
|
Posted: Fri Jan 06, 2017 9:13 am Post subject: |
|
|
How exactly make 64bit OBJ file with SRC?
Before i used command
SRC file.rc
File.rc contained statements exactly like in RESOURCES
Pie01 icon resource\icons\Pie01.ico
etc...
Right now RESOURCES command does not work if compile each file separately and then link them using SLINK64. Just use SRC old way makes 32bit OBJ and linker does not accept it |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Fri Jan 06, 2017 9:23 am Post subject: |
|
|
Use SRC to create a res file with the option /r.
See the notes on porting to 64 bits. |
|
Back to top |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2828 Location: South Pole, Antarctica
|
Posted: Fri Jan 06, 2017 10:24 am Post subject: |
|
|
Thanks for the hint, problem solved. I am sure it would help to make a note in this Porting 64 Guide that /r creates not OBJ file like with 32bits but RES file. |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2560 Location: Sydney
|
Posted: Sun Jan 08, 2017 2:52 am Post subject: |
|
|
Paul,
My program development approach is based on using .lib files, where slink(64) commands like the following make developing new programs very easy:
le \clearwin\graphlib.f95\graphlib.lib
le \clearwin\clearlib.dev\crtlib.lib
le \clearwin\plotlib.f95\plotlib.lib
le \clearwin\saplib.mem\saplib.lib
le \clearwin\iolib.f95\iolib.lib
map saplot.map
file saplot.exe
Without "le" I need better diagnostics to help develop the "lo" list.
So I would vote for slink64 being able to both create .lib files and then use them. ( Is there a problem with this approach in 64-bit that I don't understand ? )
There are alternatives, such as loading everything, or moving to modules with CONTAINS, but I find the old .lib way much easier.
Is this yet another coding approach where I need to change ?
John |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7934 Location: Salford, UK
|
Posted: Sun Jan 08, 2017 8:29 am Post subject: |
|
|
John
My understanding is that there is no particular difficulty in providing this facility. It's just one of many tasks waiting to be done. |
|
Back to top |
|
|
|