Possible to build Minix with MSVC? - Minix

This is a discussion on Possible to build Minix with MSVC? - Minix ; Has anyone built Minix with MS Visual C++ yet? There sure needs a lot of porting to be done (e.g. a.out -> COFF). Old Minix src used to come with own libraries (libc, ...). In Minix3 they are all gone. ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Possible to build Minix with MSVC?

  1. Possible to build Minix with MSVC?

    Has anyone built Minix with MS Visual C++ yet? There sure needs a lot
    of porting to be done (e.g. a.out -> COFF). Old Minix src used to come
    with own libraries (libc, ...). In Minix3 they are all gone. Why? Can Minix
    be build with GNU libc?



  2. Re: Possible to build Minix with MSVC?

    vl106 wrote:
    > Has anyone built Minix with MS Visual C++ yet? There sure needs a lot
    > of porting to be done (e.g. a.out -> COFF). Old Minix src used to come
    > with own libraries (libc, ...). In Minix3 they are all gone. Why? Can Minix
    > be build with GNU libc?
    >
    >

    No, No, and no. GNU libc doesn't run on anything but Linux, and probably
    never will. It's bloated with tons of crap for portability (to other
    OSes), and the only non-Linux system it runs in is embedded ARM
    environments (without any OS at all, like a GameBoy Advance). Minix
    would require some rather major rewrites, since a lot of it is really
    tied down to the a.out format.


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.3 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD4DBQFGGdLAsjeOFtd+nycRAkjYAJ0XQKMpqPpVt1XuYI7a9J rDZwqPfACYgt/M
    WFspA8kKgdYt/TgGYWVkXQ==
    =fyXs
    -----END PGP SIGNATURE-----


  3. Re: Possible to build Minix with MSVC?

    On Apr 9, 1:44 am, Segin wrote:
    > vl106 wrote:
    > > Has anyone built Minix with MS Visual C++ yet? There sure needs a lot
    > > of porting to be done (e.g. a.out -> COFF). Old Minix src used to come
    > > with own libraries (libc, ...). In Minix3 they are all gone. Why? Can Minix
    > > be build with GNU libc?

    >
    > No, No, and no. GNU libc doesn't run on anything but Linux,

    [snip various unsupported assertions about GNU libc]

    To the OP: GNU libc /is/ big. It is likely much too big to be useful
    on Minix.
    However, it's baby brother "dietlibc" ( http://www.fefe.de/dietlibc/ )
    is much smaller, and might be of some use as the core of a standard
    library.

    > Minix
    > would require some rather major rewrites, since a lot of it is really
    > tied down to the a.out format.


    I would think that it wouldn't take a /lot/ of rewriting.
    Theoretically, only the mm would need major modification. Neither the
    kernel (scheduler, message passing, and drivers) and fs should require
    a.out format. OTOH, COFF might not be the best format for a Minix load
    image; ELF might be better.



  4. Re: Possible to build Minix with MSVC?


    "vl106" writes:

    > Has anyone built Minix with MS Visual C++ yet? There sure needs a lot


    OSDI/1 has instructions for building (cross-compiling) Minix (1.x)
    with various C compilers of that time, some from DOS. I don't know of
    the top of my head wether OSDI/2 has any (I don't rememember so) and
    OSDI/3 i don't own yet (I'll buy that when
    ricky.sa.2000-AT-gmail-DOT-com hires me as consultant in matters of
    life and death :-).

    I do not think it is impossible in principle to create a Minix kernel
    with Visual C++. But I think that crosscompiling Minix hasn't been
    done for some time (I've heard statements of intent regarding cross
    compiling with GCC or ACK from Linux, which should be MUCH easier than
    with Visual C++), and after all -- why should one bother? Minix is
    self-hosting and that is good enough.

    I'm not sure why you want to compile Minix with Visual C++, but I
    think you're getting things backwards: One wouldn't port Minix "to
    COFF", but rather write a converter from the Visual C++ output format
    to a.out. COFF on Unix is dead anyway AFAIS (pleas correct me anyone
    if I'm wrong), so if you would want to change the Minix binary format
    on the way, ELF would be a better target. But I'm wandering.

    > of porting to be done (e.g. a.out -> COFF). Old Minix src used to come
    > with own libraries (libc, ...). In Minix3 they are all gone. Why? Can Minix


    I don't think there are no libc source in Minix 3, but since my Minix
    3 install has been gone now for some time, I can't look now. I haven't
    missed them, but that might only be, that I haven't done much with
    Minix 3 yet (infortunately there ARE other priorities).

    > be build with GNU libc?


    Let me ask some question about the central point: Do you really want
    to cross-compile Minix with Visual C++? Why do you want (which problem
    you're trying to solve?) Or is there a more fundamental
    misunderstanding of some kind?

    Regards -- Markus



+ Reply to Thread