* different alpha cpu compatibility issues?
@ 2000-03-28 18:43 Eric Ding
2000-03-28 19:12 ` warp
0 siblings, 1 reply; 8+ messages in thread
From: Eric Ding @ 2000-03-28 18:43 UTC (permalink / raw)
To: axp-list
Hi all,
I have a question about porting to Alpha.
I notice that there are various types of machines, all of which fall under
the category of "alpha" -- for example, in the config.guess of gcc 2.95.2,
it checks if it's running on alpha vs. alphaev5 vs. alphaev56, etc.
Are there compatibility issues between different alpha boxes? For example,
for Applixware, the build machine which we currently use for releases is
an EV56 machine, according to /proc/cpuinfo, while another machine which we
use for QA and stuff is a PCA56 machine. We don't seem to have any
problems running the same software on both machines, but now we've heard
from a few customers who are getting back "Signal illegal instruction"
errors when they try to run our software. We're in the process of getting
more details, but can anyone hazard a guess on why it would work in some
Alpha boxen but not others, if they have the same version/distribution of
Linux installed?
Thanks,
Eric
--
Senior Software Engineer / ericding@applix.com <><
Applix Linux Division / 112 Turnpike Road / Westboro MA 01581-2842
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: different alpha cpu compatibility issues?
2000-03-28 18:43 Eric Ding
@ 2000-03-28 19:12 ` warp
0 siblings, 0 replies; 8+ messages in thread
From: warp @ 2000-03-28 19:12 UTC (permalink / raw)
To: axp-list
Eric Ding wrote:
Hi,
> I notice that there are various types of machines, all of which fall under
> the category of "alpha" -- for example, in the config.guess of gcc 2.95.2,
> it checks if it's running on alpha vs. alphaev5 vs. alphaev56, etc.
>
> Are there compatibility issues between different alpha boxes? For example,
> for Applixware, the build machine which we currently use for releases is
> an EV56 machine, according to /proc/cpuinfo,
Yes, for example, code that is specificly optimized for an EV56 CPU
will not run properly (if at all) on older EV4(5) machine's and can
produce errors like Signal illegal instruction.
This is because the EV56 CPU's supports instructions and
optimizations which are lacking in the older EV4 CPU's.
(Same applies for optimized EV6 code on a lower CPU model,
etc.).
Hope this helps,
Regards,
Antoine
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: different alpha cpu compatibility issues?
@ 2000-03-28 19:21 Hoover, Tony
2000-03-28 19:59 ` Eric Ding
2000-03-28 20:00 ` Jay Estabrook
0 siblings, 2 replies; 8+ messages in thread
From: Hoover, Tony @ 2000-03-28 19:21 UTC (permalink / raw)
To: 'axp-list@redhat.com'
Some of the incompatibilities can be over come with PAL code, however
relying on PAL code to do such things as Byte/Word manipulations will slow
the older machines to a crawl if you are doing much. If you compile for the
21064 ( EV4 ) is "safest", however speed improvements could be noticed on
newer processors if the application was optimized for that core.
---------------------------------------------------------------------------
Tony Hoover, Network Administrator
KSU - Salina, College of Technology
mailto:hoover@sal.ksu.edu
"Don't Blend in..."
----------------------------------------------------------------------------
> ----------
> From: warp@xs4all.nl[SMTP:warp@xs4all.nl]
> Reply To: axp-list@redhat.com
> Sent: Tuesday, March 28, 2000 1:12 PM
> To: axp-list@redhat.com
> Subject: Re: different alpha cpu compatibility issues?
>
> Eric Ding wrote:
>
> Hi,
>
> > I notice that there are various types of machines, all of which fall
> under
> > the category of "alpha" -- for example, in the config.guess of gcc
> 2.95.2,
> > it checks if it's running on alpha vs. alphaev5 vs. alphaev56, etc.
> >
> > Are there compatibility issues between different alpha boxes? For
> example,
> > for Applixware, the build machine which we currently use for releases is
> > an EV56 machine, according to /proc/cpuinfo,
>
> Yes, for example, code that is specificly optimized for an EV56 CPU
> will not run properly (if at all) on older EV4(5) machine's and can
> produce errors like Signal illegal instruction.
>
> This is because the EV56 CPU's supports instructions and
> optimizations which are lacking in the older EV4 CPU's.
>
> (Same applies for optimized EV6 code on a lower CPU model,
> etc.).
>
> Hope this helps,
>
> Regards,
> Antoine
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: different alpha cpu compatibility issues?
2000-03-28 19:21 different alpha cpu compatibility issues? Hoover, Tony
@ 2000-03-28 19:59 ` Eric Ding
2000-03-28 20:15 ` David Huggins-Daines
2000-03-28 20:35 ` Jay Estabrook
2000-03-28 20:00 ` Jay Estabrook
1 sibling, 2 replies; 8+ messages in thread
From: Eric Ding @ 2000-03-28 19:59 UTC (permalink / raw)
To: axp-list
>>>>> "Hoover, Tony" <hoover@sal.ksu.edu> writes:
> Some of the incompatibilities can be over come with PAL code, however
> relying on PAL code to do such things as Byte/Word manipulations will slow
> the older machines to a crawl if you are doing much. If you compile for the
> 21064 ( EV4 ) is "safest", however speed improvements could be noticed on
> newer processors if the application was optimized for that core.
OK, so here's the followup question -- how to compile specifically for EV4?
eric
--
Senior Software Engineer / ericding@applix.com <><
Applix Linux Division / 112 Turnpike Road / Westboro MA 01581-2842
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: different alpha cpu compatibility issues?
2000-03-28 19:21 different alpha cpu compatibility issues? Hoover, Tony
2000-03-28 19:59 ` Eric Ding
@ 2000-03-28 20:00 ` Jay Estabrook
1 sibling, 0 replies; 8+ messages in thread
From: Jay Estabrook @ 2000-03-28 20:00 UTC (permalink / raw)
To: axp-list
On Tue, Mar 28, 2000 at 01:21:43PM -0600, Hoover, Tony wrote:
>
> Some of the incompatibilities can be over come with PAL code, however
> relying on PAL code to do such things as Byte/Word manipulations will slow
> the older machines to a crawl if you are doing much. If you compile for the
> 21064 ( EV4 ) is "safest", however speed improvements could be noticed on
> newer processors if the application was optimized for that core.
Best bet is to compile for EV5; this will run on EV4 or EV45 (no added
instructions when going from EV4 to EV5), but be scheduled better for
EV5, EV56, and EV6.
--Jay++
-----------------------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: different alpha cpu compatibility issues?
2000-03-28 19:59 ` Eric Ding
@ 2000-03-28 20:15 ` David Huggins-Daines
2000-03-28 20:38 ` warp
2000-03-28 20:35 ` Jay Estabrook
1 sibling, 1 reply; 8+ messages in thread
From: David Huggins-Daines @ 2000-03-28 20:15 UTC (permalink / raw)
To: axp-list
Eric Ding <ericding@applix.com> writes:
> OK, so here's the followup question -- how to compile specifically for EV4?
To quote the info file:
`-mcpu=CPU_TYPE'
Set the instruction set, register set, and instruction scheduling
parameters for machine type CPU_TYPE. You can specify either the
`EV' style name or the corresponding chip number. GCC supports
scheduling parameters for the EV4 and EV5 family of processors and
will choose the default values for the instruction set from the
processor you specify. If you do not specify a processor type,
GCC will default to the processor on which the compiler was built.
That's not exactly true though, you just have to be careful to
configure the compiler with 'alpha-linux' instead of, say,
'alphaev6-linux' as the target. Just typing './configure && make
bootstrap' isn't good enough. If your distribution doesn't do this,
then you might want to find a new one.
To be sure, compile with -mcpu=ev4 or -mcpu=ev5. You probably want
-mcpu=ev5, because the only difference is the instruction scheduling,
and EV5 scheduling is better for the majority of machines out there
these days.
--
David Huggins-Daines, Senior Linux Consultant, Linuxcare, Inc.
613.562.1239 desk, 613.223.0225 mobile
dhd@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: different alpha cpu compatibility issues?
2000-03-28 19:59 ` Eric Ding
2000-03-28 20:15 ` David Huggins-Daines
@ 2000-03-28 20:35 ` Jay Estabrook
1 sibling, 0 replies; 8+ messages in thread
From: Jay Estabrook @ 2000-03-28 20:35 UTC (permalink / raw)
To: axp-list
On Tue, Mar 28, 2000 at 02:59:45PM -0500, Eric Ding wrote:
>
> OK, so here's the followup question -- how to compile specifically for EV4?
As the self-documenting features of Alpha GCC are a bit sparse (:-),
you could look at what the Makefile does for generating a "generic"
kernel for Alpha; ie arch/alpha/Makefile. I believe it is something
like:
ifeq ($(CONFIG_ALPHA_GENERIC),y)
CFLAGS := $(CFLAGS) -mcpu=ev5
endif
Currently, the other options for -mcpu are:
ev4 for AVANTI, NONAME, MULTIA, etc
ev56 for PC164, LX164, MIATA,
pca56 for SX164, RX164
ev6 for DP264, DS10, DS20, ES40, XP1000
ev4 and ev5 differ only in the scheduling of instructions.
ev56 adds byte/word operations. pca56 adds the so-called MVI
instructions (ie analogous to MMX) ev6 adds addition FP instructions,
and probably some scheduling changes. In the future, perhaps ev67
will add the counting instructions (I think Richard already did code
generation to use them, but it's not active).
--Jay++
-----------------------------------------------------------------------------
Jay A Estabrook Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20 (508) 467-2080
200 Forest Street, Marlboro MA 01752 Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: different alpha cpu compatibility issues?
2000-03-28 20:15 ` David Huggins-Daines
@ 2000-03-28 20:38 ` warp
0 siblings, 0 replies; 8+ messages in thread
From: warp @ 2000-03-28 20:38 UTC (permalink / raw)
To: axp-list
David Huggins-Daines wrote:
> Eric Ding <ericding@applix.com> writes:
>
> > OK, so here's the followup question -- how to compile specifically for EV4?
>
> To quote the info file:
[...]
> To be sure, compile with -mcpu=ev4 or -mcpu=ev5. You probably want
> -mcpu=ev5, because the only difference is the instruction scheduling,
> and EV5 scheduling is better for the majority of machines out there
> these days.
Another option is to try the Digit^H^H Compaq CCC compiler,
it's available at http://www.compaq.com/linux/
With Compaq's ccc you can specify -fast -arch generic to
make sure that the result will run on any Alpha machine.
Regards,
Antoine
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2000-03-28 20:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-28 19:21 different alpha cpu compatibility issues? Hoover, Tony
2000-03-28 19:59 ` Eric Ding
2000-03-28 20:15 ` David Huggins-Daines
2000-03-28 20:38 ` warp
2000-03-28 20:35 ` Jay Estabrook
2000-03-28 20:00 ` Jay Estabrook
-- strict thread matches above, loose matches on Subject: below --
2000-03-28 18:43 Eric Ding
2000-03-28 19:12 ` warp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox