Nasm for Minix 3 - Minix

This is a discussion on Nasm for Minix 3 - Minix ; An object file converter (aar.c) can be obtained from http://home.comcast.net/~rzulawnik50 . It converts object files created by nasm on Minix 3 to ACK object files, that can then be linked into full-blown executables. For example, consider a C source m.c ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Nasm for Minix 3

  1. Nasm for Minix 3

    An object file converter (aar.c) can be obtained from
    http://home.comcast.net/~rzulawnik50. It converts object files
    created by nasm on Minix 3 to ACK object files, that can then
    be linked into full-blown executables. For example, consider a
    C source m.c and nasm-style assembly source i.s - this is how
    they could be assembled/compiled/linked together :

    $ nasm -f aout i.s
    $ aar i.o
    $ cp i.o.ack ii.o
    $ cc m.c ii.o -o m

    Nasm 0.98.39 builds 'out of the box' on Minix 3, except for the
    fact that Minix make does not support VPATH, so configure and
    build steps have to be run inside src directory (and not in a
    separate obj directory). Also, chmem-ing of various parts of the
    compiler is necessary to prevent them from running out of memory.
    After one builds nasm that way, one can use it to assemble files
    producing a.out object files (using -f a.out) and convert them into
    ACK object files as shown above.

    While it probably is not a big deal to modify nasm so that it
    produces ACK-style objects directly, it required minimal effort to
    modify the earlier converter aa.c (ACK-to-a.out) so that it works
    in reverse.

    This converter has not been tested, other than on a couple of really
    simple, human-created assembly sources. Certainly a better (and
    far more exciting) test would be to feed it something created by a
    compiler (e.g. lcc).

    Robert Zulawnik


  2. Re: Nasm for Minix 3

    Hi Robert,

    Great work - thank you for doing it.

    Regards, Michael


+ Reply to Thread