forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Start using debuggers, people
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5374
Location: Salford, UK

PostPosted: Mon Jun 11, 2018 4:08 pm    Post subject: Reply with quote

Dietmar

I am not familiar with the details but if you put

Code:
idum8=2147483647_8


into an FTN95 program then the kind value is out of range unless you are using /alt_kinds. Otherwise default values are in the range 1 to 4.
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 236
Location: Manchester

PostPosted: Tue Jun 12, 2018 8:43 am    Post subject: Reply with quote

It looks like you are correct, 64-bit constants are truncated to 32-bit (in sdbg and sdbg64). I will look at it.
Back to top
View user's profile Send private message Visit poster's website
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 125

PostPosted: Tue Jun 12, 2018 8:54 am    Post subject: Reply with quote

Paul,

thanks for your hint, I tried it and command
Code:

ftn95 sdbg_problem1.for /alt_kinds /debug /64 /link

did not produce the error any more (having added _8 to the constants of the assignments to idum8 and idum88 in the ftn95 code mentioned above).

Regards,
Dietmar
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5374
Location: Salford, UK

PostPosted: Tue Jun 12, 2018 11:03 am    Post subject: Reply with quote

Dietmar

It would be safer to avoid /alt_kinds and append _4 (for example).
Hopefully all the bugs relating to /alt_kinds have now been fixed but I am not that confident.
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 125

PostPosted: Thu Jun 14, 2018 1:27 pm    Post subject: Reply with quote

Currently I am using sdbg64 quite often when porting a GUI application from 32 to 64 bit. I happened to run into a subroutine containing ENTRY statements und unfortunately could not set breakpoints in the lines after the entry statements. This works for the 32 version of ftn95/sdbg.

Please look at file myentry_subroutine.for
Code:

      INTEGER*4 MYINT,MYRESULT
     
       MYINT=33
       
       call SR1(MYINT,MYRESULT)
       write(*,*) MYRESULT
       call SR2(MYINT,MYRESULT)
       write(*,*) MYRESULT
       call SR3(MYINT,MYRESULT)
       write(*,*) MYRESULT
       
      end
     
      SUBROUTINE SR1( MYINT,MYRESULT )
       INTEGER*4 MYINT,MYRESULT
       MYRESULT = MYINT
       RETURN

       ENTRY SR2 ( MYINT,MYRESULT )
       MYRESULT = 3 * MYINT
       RETURN

       ENTRY SR3 ( MYINT,MYRESULT )
       MYRESULT = MYINT + 1
      RETURN
      END

and compile it via
Code:

ftn95 myentry_subroutine.for /debug /link /64

I may set a breakpoint to line 16, however, I cannot set breakpoints a lines 20,21,23 and 24 which I should be able to, shouldn't I?

Regards,
Dietmar
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 1822
Location: South Pole, Antarctica

PostPosted: Fri Jun 15, 2018 2:06 pm    Post subject: Reply with quote

I would add similar problem that SDBG64 as opposed to SDBG starts its debugging process at the wrong first line (red line). To reproduce that one can use Polyhedron test suite of Fortran-90 benchmarks which is free for downloading. Take the smallest size fortran sources like channel2.f90 or tfft2.f90
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group