T.R | Title | User | Personal Name | Date | Lines |
---|
3853.1 | I can't get it to fail | FLOYD::YODER | MFY | Tue Mar 25 1997 12:49 | 4 |
| Is this related to note 3816?
I tried some "obvious" possibilities based on the code in .0 but couldn't
produce the error. I'm afraid we may need to ask for a reproducer. :-)
|
3853.2 | Check if user has record representation clause | KMOOSE::CMCCUTCHEON | Charlie McCutcheon | Wed Mar 26 1997 09:02 | 14 |
| I was only able to get this to "fail" if I added a record representation
clause which tells Ada exactly where to put each record component:
for B use
record
X at 0 range 0..55;
Y at 7 range 0..64;
end record;
Then, the "Must be aligned on at least a 32 bit boundary" is valid, because
the user has asked us specifically for it to be put at a non-alligned
boundary.
Charlie
|
3853.3 | Would code compiled on VAX fail on Alpha? | CSC32::D_SANFORD | | Wed Mar 26 1997 15:43 | 11 |
| Re: .1 simular, but a different customer. This is porting VAX to
Alpha, not user a third party compiler.
Re: .2 that is what the customer is doing, but he claims this work
with the VAX Ada compiler...
Is it possible that a DATE_TIME_TYPE would be allowed on a 8 bit
boundary on VAX, but must be on 32 bit on the Alpha? Maybe they
are not using DEC Ada and just don't want me to know.
-drew
|
3853.4 | | CSC32::D_SANFORD | | Wed Mar 26 1997 16:14 | 14 |
| Customer solved his problem. He was using STARLET.DATE_TIME_TYPE
and since this was defined as a LONGWORD array I sugggested using
a byte definition, so the customer found:
CALENDAR.TIME_AS_BYTES
He uses this and it works... So either VAX allowed byte/word
alignment or STARLET.DATE_TIME_TYPE was defined differently.
Not sure if this will cause an application failure, but they are
only porting the code, they did not write it, so they need to be
careful in making any changes.
-drew
|
3853.5 | CALENDAR.TIME is more portable solution | KMOOSE::CMCCUTCHEON | Charlie McCutcheon | Thu Mar 27 1997 09:19 | 7 |
| > CALENDAR.TIME_AS_BYTES
If you want to be portable, able to compile on VAX or Alpha, try
CALENDAR.TIME instead. I don't see TIME_AS_BYTES in the VAX version
of package Calendar.
Charlie
|