* Re: newbie confusion
2002-02-06 8:42 newbie confusion TiHKAL
@ 2002-02-06 9:12 ` Joerg Bruehe
2002-02-06 17:56 ` Robert M. Riches Jr.
2002-02-06 15:17 ` Juhana Paavola
1 sibling, 1 reply; 4+ messages in thread
From: Joerg Bruehe @ 2002-02-06 9:12 UTC (permalink / raw)
Hi Anonymous!
TiHKAL wrote:
>
> [...] On alpha ports of linux, if one has source to programs (such as
> cdr burning tools/dvd movie players/games etc.) is it up to the
> programmer to provide source for alpha for the program to work, or is
> it merely that you just compile the source on your own alphabox, and
> this optimizes the program to run on alphalinux?
"It depends":
The programmer is not bound to do anything, s/he delivers the source
code "as is" without any obligations.
Assuming the code is syntactically correct, you can give it to
compiler and linker (in most cases: "gcc") and will get a binary for
an Alpha CPU (assuming the source is pure C or other portable language,
not including "asm" stuff - which might be used in some programs).
Whether that binary executable really works on Alpha depends on the
program being "64-bit clean" - it is possible to write C code that
does contain (implicit or explicit) assumptions about some basic
sizes which hold true on x86 but fail on Alpha.
(Some such cases may be detected by the compiler, so compilation /
linking would fail; some may go undetected.)
A very common case is to assume one can store a pointer in an "int"
variable - not true on Alpha, because here an address is 64 bit but
an "int" only 32 (use a "long" if necessary, that has 64 bit).
To overcome this porting problem, the Compaq C compiler and linker
have an option "-taso" (= "address short option"), resulting in
all addresses being less than 2 (or 4?) GB so they fit into an "int".
The compiler is available for Alpha-Linux as well, but I do not
know whether the options works in that version as well;
AFAIK there is no such option in the GNU "gcc".
> Basically I am a
> little baffled as to whether or not anything I could run on a
> slackware x86 box could also run on an alphabox running the slackware
> alpha port. Thanks in advance for help anyone wants to offer!
A Linux distribution for an Alpha CPU does contain most "standard"
packages with Alpha binaries, so most are provided.
For others, you may get the sources and compile them yourself,
but there may be code that is not clean enough to run on Alpha.
HTH,
Joerg Bruehe
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: joerg@sql.de
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: newbie confusion
2002-02-06 8:42 newbie confusion TiHKAL
2002-02-06 9:12 ` Joerg Bruehe
@ 2002-02-06 15:17 ` Juhana Paavola
1 sibling, 0 replies; 4+ messages in thread
From: Juhana Paavola @ 2002-02-06 15:17 UTC (permalink / raw)
TiHKAL <msgtihkal@excite.com> wrote:
> I am completely new to the alpha architecture and thus to alpha linux,
> and I have a simple question I'm sure anyone will be able to help me
> with. On alpha ports of linux, if one has source to programs (such as
> cdr burning tools/dvd movie players/games etc.) is it up to the
> programmer to provide source for alpha for the program to work, or is
> it merely that you just compile the source on your own alphabox, and
> this optimizes the program to run on alphalinux? Basically I am a
> little baffled as to whether or not anything I could run on a
> slackware x86 box could also run on an alphabox running the slackware
> alpha port. Thanks in advance for help anyone wants to offer!
You can start looking in www.freshmeat.net, there you can find programs
for Linux.
Note that many (too many...) uses x86 as development, so code what they
produce may run on Alpha but its not always that.
Still, many program run in Alpha quite well, some maybe slower than on x86
because code may be optimized to x86.
If you cannot get some code to run/compile ,you can inform developer.
Many of them are happy (or not) when her/his code is used on some other
architecture what they use.
And for those progs what you asked...
cd-burning : cdrecord or cdrdao
movie player : smpeg/xanim, or try mtv ,its commercial & old but its
optimized for alpha
dvd-movie : maybe mplayer & opensource divx, haven't tried (I don't have
dvd-rom)
games... : freeciv/xmame/xmess/....
Slackware/Alpha would be just fine, but it isn't so popular and isn't
supported anymore.
^ permalink raw reply [flat|nested] 4+ messages in thread