THIS PAGE IS CONCERNED WITH HPUX POPLOG AND IS OUT OF DATE
FOR CURRENT INFORMATION ON POPLOG SEE

http://www.cs.bham.ac.uk/research/projects/poplog/V16/AREADME.html
64-bit Poplog Version 16 for linux on X86-64 hardware.

--------------------------------------------------------------------------

Waldek Hebisch worked on 64-bit linux + AMD64 (x86-64) poplog
(Poplog version 16), which had a major reconstruction during 2019.

Details are now here:
http://www.cs.bham.ac.uk/research/projects/poplog/V16

OLD INFORMATION:

From Aaron Sloman Sun Nov 16 13:49:46 GMT 2003
To: pop-forum
Cc: Waldek Hebisch
Subject: HPUX Poplog V15.53 now at Bham - also V15.53d needed recompiling

Waldek wrote:
> Subject: Re: Using 'varargs' vs 'stdargs' (and new pc+linux tar ball)
> Date: 11 Nov 2003 20:55:20 GMT
> Organization: Politechnika Wroclawska

[WH]
> : > I have Poplog running on HP 712 under HP-UX 9.05.
>
[AS]
> : Am I right in thinking that's a machine using the HPPA architecture?

[WH]
> Yes
>
> : > I have cross-compiled
> : > it on i386 Linux and assembled and linked on HP-UX.
 .....

> I have made a web page with dowloads and some extra info:
>
> http://www.math.uni.wroc.pl/~hebisch/poplog

Very many thanks!

I have copied the complete contents of this to
    http://www.cs.bham.ac.uk/research/poplog/hp-poplog/

and I have put additional information about it into
    http://www.cs.bham.ac.uk/research/poplog/freepoplog.html

(which now has a NEWS section at the top.)

[I assume this will be mirrored at www.poplog.org but I am not sure
the mirror software is working: some things there are still out of
date.]

> In principle one should be able to fetch the corepop binary and a
> build script (mutated version of your rebuild script) and use the sources
> to get full system (well, without X) -- that worked for me. Just in
> case I also made a full dump and binary dump.

I untarred your complete package, added various recent updates and
then rebuilt it as
    http://www.cs.bham.ac.uk/research/poplog/hp-poplog/poplog-hppa-hpux9-v15.53d.tar.gz
        12822075 bytes Nov 16 13:20

NB: this is not yet a usable system as the changed source files will
have to be recompiled, and the system relinked, as explained below.

QUESTION:
I suspect that $popsrc/aarith.s may need changing, after the label
array_sub_error, following the change made to the PC+linux version
(though I am not sure)

Here's the revision note for the PC version:
| /* --- Revision History ---------------------------------------------------
| --- Aaron Sloman, Jan  7 2003
|   Replaced
|       call    XC_LAB(weakref Sys$-Array$-Sub_error)
|   with
|       jmp XC_LAB(weakref Sys$-Array$-Sub_error)
|   as suggested by
|       Waldek Hebisch
|   following error report by
|       Luc Beaudoin
|   both posted to comp.lang.pop

In the HP version of aarith.s there's the line
    CALLSYS     XC_LAB(weakref Sys$-Array$-Sub_error)
    addi        -4, %usp, %usp  ;;; reveal the last index again

Should it be some sort of jump instruction instead of call?

(A change like this also needs to go into windows poplog aarith.s but I
can't do that, as I can't rebuild windows poplog, and I don't know if
the syntax is the same as for pc+linux assembler. The bug was not
there in solaris poplog.)

ADDITIONAL NOTES:
Things added to the new package for hp-poplog :

    Waldek's suggested changes concerning several months ago errno,
    in $popexternlib and $popsrc

    More recent fixes, including David Young's compiler bugfix
    in $popsrc, and some changes I made, including increasing the
    default value for popmemlim from 300000 to 1500000

    All the changed files in $popsrc and $popexternlib have old versions
    with .orig suffixes.

    (They come from here:
        http://www.cs.bham.ac.uk/research/poplog/src/new/v15.53apatch/
        http://www.cs.bham.ac.uk/research/poplog/src/new/v15.53dpatch/ )

    A minor change in $usepop/pop/ved/src/vdwindows.p which does not
    require recompiling. It merely added a declaration.

    Latest version of objectclass in $usepop/pop/lib/objectclass
    As in
        http://www.cs.bham.ac.uk/research/poplog/src/new/objectclass-10202.tar.gz

    New stuff for Ved and XVed to provide more consistent and useful
    keybindings, as in
        http://www.cs.bham.ac.uk/research/poplog/src/new/newved.tar.gz

    and some older stuff for Ved on linux console on PC, for
    completeness.

    Directory renamed as v15.53d

    Some extra things in the top-level directory: a man/ and a bin/
    subdirectory, userguide.html and INSTALL/ directory copied from
    the latest pclinux version, But I don't know if the scripts in
    there for relinking and rebuilding poplog will work (after the
    sources have been recompiled and archived).
    Also some empty files with names saying when the package was made
    and what it is.

I did not include my recent changes to three files in $popsrc/syscomp
required for building the system saved images in $popsys
    http://www.cs.bham.ac.uk/research/poplog/src/new/newsysfiles.tar.gz

I did not include the syscomp files because I don't know if the changes
will work on HPUX. They are concerned with changing the format in the
$popsys/poplink_cmnd script generated by pglink, so as to refer to
libXm.so in $popexternlib to remove the need for users to insert the
missing link in /usr/X11R6/lib.

I've also changed things so as to keep pathnames with environment
variables instead of expanding them, since expanded versions are not
portable in link scripts. But I have not yet got it all working as I
have not yet found the bit that creates the lines referring to xsrc.olb
vedsrc.olb and src.olb [I ran out of time when hunting.]

REBUILDING:
For the new package to be usable
    cd $popsrc

    ## compile the new files
    pgcomp vm_conspdr.p getstore.p initial.p sysfileok.p errors.p

    # this should show new .o and .w files
    ls -l *.o *.w

    # archive the new files
    pglibr -r ../obj/src.wlb *.w

    # delete them
    rm *.o *.w

    cd $popsys

    pwd
    echo "rebuilding safe pop11"

    pglink -safe -norsvp

    # NB do not use 'mv' as that will destroy links
    cp newpop11 corepop11

    echo "rebuilding system saved images"
    $popsrc/mksyscomp popc poplibr poplink

    $popsrc/mknewpop

    ## this should show newpop.psv and three others
    ls -l *.psv

#EITHER
    ## relink poplog (for motif: see HELP NEWPOP)
    $usepop/pop/src/newpop -link -x=-xm -norsv

#OR
    ## relink poplog (without motif: see HELP NEWPOP)
    $usepop/pop/src/newpop -link -x=-xt -norsv

#(or use -nox instead of -x=xt if you don't want x)


    ### The following are done by the newpop command
    ## $popcom/mkstartup
    ##
    ## ## Needed for next items
    ## setenv pop_pop11 "-$popsavelib/startup.psv"
    ##
    ## $popcom/mkplog
    ## $popcom/mkclisp
    ## $popcom/mkpml

This could be useful too:
    ## $popcom/mkxved


Aaron
===
Aaron Sloman
http://www.cs.bham.ac.uk/~axs/

NOTE: I'll put this message in
    http://www.cs.bham.ac.uk/research/poplog/hp-poplog/AREADME.txt
with Email addresses mangled.