* Alpha C++ Compiler, Please help!
@ 1997-02-05 5:00 Pen Chiang
1997-02-06 5:00 ` Monteleone
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pen Chiang @ 1997-02-05 5:00 UTC (permalink / raw)
PLEASE...
I am trying to port a program from AIX to Alpha UNIX using using Alpha C++
Version 5.1. The compilation and link seem to be ok, but when exected I
keep on getting the statements "Unaligned Access pid ...". What flag should
I use during the compiling process to supress this messages.
In version 5.5, I used the flag "-misalign" to supress the "Unaligned ..."
statement, but what should I use in the Version 5.1 environment.
THANKS,
Pen
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Alpha C++ Compiler, Please help!
1997-02-05 5:00 Alpha C++ Compiler, Please help! Pen Chiang
@ 1997-02-06 5:00 ` Monteleone
1997-02-07 5:00 ` Chris Darling
1997-02-07 5:00 ` Don Dossa
2 siblings, 0 replies; 4+ messages in thread
From: Monteleone @ 1997-02-06 5:00 UTC (permalink / raw)
Pen Chiang wrote:
>
> PLEASE...
>
> I am trying to port a program from AIX to Alpha UNIX using using Alpha C++
> Version 5.1. The compilation and link seem to be ok, but when exected I
> keep on getting the statements "Unaligned Access pid ...". What flag should
> I use during the compiling process to supress this messages.
>
> In version 5.5, I used the flag "-misalign" to supress the "Unaligned
> statement, but what should I use in the Version 5.1 environment.
>
> THANKS,
> Pen
The C++ V5.1 compiler did not support the -misalign switch. There is
no switch available with V5.5. The use of the -misalign switch is not
recommended at any rate because of the performance degradation, which is
most often, quite extensive.
In all likelyhood, you are seeing unaligned accesses because of
a problem in the source code which should be corrected there.
There is a FAQ which addresses this issue directly:
http://www.partner.digital.com/www-swdev/pages/Home/TECH/faqs/dunix/unalign.html
Again, the recommended solution to this problem is to track down the
problem and modify the source, as described in the FAQ. There are other
ways to get around this situation using "uac" (also described in the
FAQ), but this approach is only recommended as a fall back.
Bob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha C++ Compiler, Please help!
1997-02-05 5:00 Alpha C++ Compiler, Please help! Pen Chiang
1997-02-06 5:00 ` Monteleone
@ 1997-02-07 5:00 ` Chris Darling
1997-02-07 5:00 ` Don Dossa
2 siblings, 0 replies; 4+ messages in thread
From: Chris Darling @ 1997-02-07 5:00 UTC (permalink / raw)
Pen Chiang wrote:
>
> PLEASE...
>
> I am trying to port a program from AIX to Alpha UNIX using using Alpha C++
> Version 5.1. The compilation and link seem to be ok, but when exected I
> keep on getting the statements "Unaligned Access pid ...". What flag should
> I use during the compiling process to supress this messages.
>
> In version 5.5, I used the flag "-misalign" to supress the "Unaligned ..."
> statement, but what should I use in the Version 5.1 environment.
>
> THANKS,
> Pen
If this is the problem I think it is, try the command
uac p 0
on the commandline before you run the executable.
Chris Darling
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha C++ Compiler, Please help!
1997-02-05 5:00 Alpha C++ Compiler, Please help! Pen Chiang
1997-02-06 5:00 ` Monteleone
1997-02-07 5:00 ` Chris Darling
@ 1997-02-07 5:00 ` Don Dossa
2 siblings, 0 replies; 4+ messages in thread
From: Don Dossa @ 1997-02-07 5:00 UTC (permalink / raw)
To: Pen Chiang
If you are getting an occasional unaligned access, and you simply want
to block the notification, run the uac program. There is a man page for
it. If you are generating lots of unaligned accesses, then you are
potentially wasting a lot of compute resources doing the fix ups. This
indicates that you should re-examine your source code for the problem.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-02-07 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-05 5:00 Alpha C++ Compiler, Please help! Pen Chiang
1997-02-06 5:00 ` Monteleone
1997-02-07 5:00 ` Chris Darling
1997-02-07 5:00 ` Don Dossa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox