View previous topic :: View next topic
|
Author |
Message |
Karthikeyan Subbarayan
New User
Joined: 24 Feb 2008 Posts: 62 Location: Boston
|
|
|
|
hi All,
There is an requirement to change Pl/I compiler version from V3.7 to V4.3 and in most of the programs we are getting the below WARNING. Do we really need to address this warning, what will cause if the below WARNING is not addressed
Quote: |
IBM2634I W 172.2 Given the support for addressing arithmetic, basing a
FIXED BIN on a POINTER or OFFSET is unnecessary, and
it will also fail to work properly if the size of a
POINTER changes.
|
We also get this warning in some of the copy book, which really scars us since it affect most of the components. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
why not read the PL/1 migration guide
Your support should look carefully at the customization to understand
if and when 64 bits pointers will/might be used
( all depends on the allocated storage range )
if that is the case ( 64 bits pointers )
You should consider reviewing Your programs to use the PL/1 provided pointer arithmetics
( which does not depend on the pointer size ) |
|
Back to top |
|
|
Karthikeyan Subbarayan
New User
Joined: 24 Feb 2008 Posts: 62 Location: Boston
|
|
|
|
Sure, I will read the PL/1 migration guide. Just to get brief idea so that i can understand clearly while reading.
All our programs use "FIXED BIN(31)" so it will not cause any impact in the output though we are not addressing the issue. Do my understanding is correct ? |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Just the opposire; re-read the message. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
oh my goodness ...
a 32 bits pointer will use 4 bytes
a fixed bin 31 thing will use 4 bytes
a 64 bits pointer will use 8 bytes
so a fixed bin 31 rebased/redefined on it will map only the leftmost 32 bits ...
scary isn' t it ? |
|
Back to top |
|
|
|