* digital unix <-> linux/alpha portability
@ 1996-12-16 23:12 Christian Czezatke
0 siblings, 0 replies; 4+ messages in thread
From: Christian Czezatke @ 1996-12-16 23:12 UTC (permalink / raw)
Hi!
I'm about to join a project at the university (bringing lburg/lcc to Alpha
platforms). The primary goal at the moment is to get lcc to life on
digital unix. -- Unfortunately I don't have a digital unix license for my
box at home, but i _do_ have Linux/Alpha ;-) -- Of course I'd like to be
able to do some (or even most) of the work on my home box.
The problem with lcc is that I've been told that it is not completely
64bit clean at the moment. -- The very first version for the Alpha should
therefore use a digital unix feature that allows you to place all your
text and data into the first 4GB of a process's address space.
So I'm facing the following problems:
1) Is it somehow possible to do the same thing under Linux/Alpha (i.e.
squeezing everything in the lowest 4GB of the address space.)?
We've tried to fool around with the ld options "-Tbss -Tdata" and
"-Ttext" to force everything into the low 4GB but all we've got
was an executable that immediately got a "Signal 11" (and even
killed the shell it was started from :-( ).
From what we've tried I've got the expression that it _should_
be possible to do that, but it does not work at the moment. - Is
this correct?
2) How about the compatibility of the gcc-assembler and the
digital unix assembler? -- Is it possible to get the same assembler
code compiled by gcc and the digital unix assembler as well? -- If not,
are the differences small enough to be eliminated by preprocessing
the assembler listing with a small perl script or such?
(begin off topic)
3) If all else fails -- How much is a digital unix license
for a student? ;-) -- Would it comfortably run on a 233MHz UDB
w. 56MB RAM and 1GB HD? (Typical workload: one user running X-Windows,
emacs, a few xterms and tools like cc, lex, yacc... every now and
then.) Or would it be possible (and cheaper..) to get a license that is
only valid for a certain period of time e.g. one that expires after 6
months or so?
(end off topic)
Any help on these topics would be greatly appreciated.
Thanks in advance!
christian
--------------------------------------------------------------------
| Christian Czezatke, Student of Computer Science at the Vienna |
| University Of Technology. -- Also hacking around with Linux and |
| ACAD for fun and for profit. |
--------------------------------------------------------------------
Our continuing mission: To seek out knowledge of C, explore
strange Un*x commands, to boldly code where no-one has manpage 4.
- The Linux Programer's Guide
--
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] 4+ messages in thread
* Re: digital unix <-> linux/alpha portability
[not found] <Pine.LNX.3.95.961216213752.222B-100000@udb.ceci.at>
@ 1996-12-17 4:32 ` Jim Nance
1996-12-17 9:53 ` Iwao Jack Makino
1 sibling, 0 replies; 4+ messages in thread
From: Jim Nance @ 1996-12-17 4:32 UTC (permalink / raw)
> 1) Is it somehow possible to do the same thing under Linux/Alpha (i.e.
> squeezing everything in the lowest 4GB of the address space.)?
> We've tried to fool around with the ld options "-Tbss -Tdata" and
> "-Ttext" to force everything into the low 4GB but all we've got
> was an executable that immediately got a "Signal 11" (and even
> killed the shell it was started from :-( ).
Just as a hunch, try compiling something under Digital Unix with the
-taso flag and see if you can figure out where it put the bss, data, and
text segments. Then see if you can duplicate this under linux by setting
the flags you mentioned above. I would link statically to start
with, you can do the shared libs/loader later.
> 2) How about the compatibility of the gcc-assembler and the
> digital unix assembler? -- Is it possible to get the same assembler
> code compiled by gcc and the digital unix assembler as well? -- If not,
> are the differences small enough to be eliminated by preprocessing
> the assembler listing with a small perl script or such?
You can use the Digital Unix assmebler with gcc, so I think it should be.
Note that Digital Unix generates ECOFF executables. RedHat 4.0 is an
ELF based system, so you might have some trouble using the default tools,
but older version of RedHat were ECOFF. Linux/Alpha can run both ECOFF
and ELF executables.
Jim
--
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] 4+ messages in thread
* Re: digital unix <-> linux/alpha portability
[not found] <Pine.LNX.3.95.961216213752.222B-100000@udb.ceci.at>
1996-12-17 4:32 ` digital unix <-> linux/alpha portability Jim Nance
@ 1996-12-17 9:53 ` Iwao Jack Makino
1 sibling, 0 replies; 4+ messages in thread
From: Iwao Jack Makino @ 1996-12-17 9:53 UTC (permalink / raw)
>
> I'm about to join a project at the university (bringing lburg/lcc to Alpha
> platforms). The primary goal at the moment is to get lcc to life on
> digital unix. -- Unfortunately I don't have a digital unix license for my
> box at home, but i _do_ have Linux/Alpha ;-) -- Of course I'd like to be
> able to do some (or even most) of the work on my home box.
if you are lucky enough to have access to media for osf/1 get it licence
only cost you under $400 for students/faculty.
---
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
You know we're gonna have a PARTY, PARTY!
http://www.cord.edu/homepages/imakino/
Jeg heter Jack, Hvem er du? Jeg liker ikke !@*#&*$^#*(@)&.
--
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] 4+ messages in thread
* Re: digital unix <-> linux/alpha portability
[not found] <9612170432.AA06170@scooter>
@ 1996-12-17 22:22 ` Christian Czezatke
0 siblings, 0 replies; 4+ messages in thread
From: Christian Czezatke @ 1996-12-17 22:22 UTC (permalink / raw)
Hi!
At first thanks to all who have provided help on that issue. However,
there are still some minor issues left... ;-)
On Mon, 16 Dec 1996, Jim Nance wrote:
>
>
> > 1) Is it somehow possible to do the same thing under Linux/Alpha (i.e.
> > squeezing everything in the lowest 4GB of the address space.)?
[snip]
> Just as a hunch, try compiling something under Digital Unix with the
> -taso flag and see if you can figure out where it put the bss, data, and
> text segments. Then see if you can duplicate this under linux by setting
> the flags you mentioned above. I would link statically to start
> with, you can do the shared libs/loader later.
The "-taso" flag was exactly what we are planning to use in the first
place. We took a rather crude approach when we first tried to do something
similar in Linux/Alpha. -- We just wrote a tiny program that does a
pointer -> integer -> pointer cast. Then we tried to relocate the text,
data and stack segment of that program to (arbitrary) places within the
first gigabyte of the address space by using the appropriate "ld" flags.
(Of course we made sure that they don't overlap.) -- Would it make any
difference if we were using the same start addresses that digital unix
uses in conjunction with the "-taso" flag? Actually I was assuming that
_any_ starting address should work. -- Or is this a misconception?
>
> > 2) How about the compatibility of the gcc-assembler and the
> > digital unix assembler?
[snip]
> You can use the Digital Unix assmebler with gcc, so I think it should
be.
> Note that Digital Unix generates ECOFF executables. RedHat 4.0 is an
> ELF based system, so you might have some trouble using the default
tools,
> but older version of RedHat were ECOFF. Linux/Alpha can run both ECOFF
> and ELF executables.
Actually, I'm facing the problem "the other way round". -- The task that
we are planning to undertake is to write an Alpha-backend for a compiler.
That backend will (hopefully ;-) ) emit assembler code. So the problem is
that I would like to be able to feed the same output of that backend into
the digital unix assembler as well as into gcc's assembler.
What I originally had in mind was wheter the assembler inputs that gcc and
digital unix's assembler accept are identical -or at least similar enough-
so that it is possible to feed the output of the backend into both with
little or no postprocessing at all.
The actual creation of an executable binary from assembler code is left to
the respective tools of the respective platform. Mutually interchangeable
binaries are not a requirement in that project. -- I think this will
mostly eliminate the ECOFF vs. ELF problems.
Using only the digital unix assembler is unfortunately not a possible
solution since it is not available on Linux/Alpha... ;-)
Thanks for your input.
Christian
--------------------------------------------------------------------
| Christian Czezatke, Student of Computer Science at the Vienna |
| University Of Technology. -- Also hacking around with Linux and |
| ACAD for fun and for profit. |
--------------------------------------------------------------------
Our continuing mission: To seek out knowledge of C, explore
strange Un*x commands, to boldly code where no-one has manpage 4.
- The Linux Programer's Guide
--
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] 4+ messages in thread
end of thread, other threads:[~1996-12-17 22:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.3.95.961216213752.222B-100000@udb.ceci.at>
1996-12-17 4:32 ` digital unix <-> linux/alpha portability Jim Nance
1996-12-17 9:53 ` Iwao Jack Makino
[not found] <9612170432.AA06170@scooter>
1996-12-17 22:22 ` Christian Czezatke
1996-12-16 23:12 Christian Czezatke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox