Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Send some filthy mail.


devel / comp.lang.c / two c libraries in one

SubjectAuthor
o two c libraries in onePaul Edwards

1
two c libraries in one

<umm820$q706$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=30429&group=comp.lang.c#30429

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mutazi...@gmail.com (Paul Edwards)
Newsgroups: comp.lang.c
Subject: two c libraries in one
Date: Fri, 29 Dec 2023 18:46:22 +0800
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <umm820$q706$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Dec 2023 10:46:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1a173f022a403379539a1b7cac781ecc";
logging-data="859142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zTH9Z1+rw485E6he5ZyBzY9pM9fZYAG0="
User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:Mwb7kQNvm/eMWqkUCR3T4LOh3Jo=
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Paul Edwards - Fri, 29 Dec 2023 10:46 UTC

There is something that might be of interest
to this group.

You probably know about mingw that allows
small executables that are only dependent
on msvcrt.dll.

I basically have a rival to that with PDPCLIB
and PDOS/386. If you have a C90-compliant
program you can build it against PDPCLIB and
it will work on Windows (from Win95 up) as
well as on PDOS/386.

And you have probably heard of Wine that runs
under Linux and is huge.

Well, I have a rival to Wine that is about 50k
in size that satisfies that limited purpose of
running msvcrt-based executables under Linux -
optionally under a shell to run multiple commands
and do "dir" and some other stuff.

It relies on a consistent calling convention
(cdecl), and does the loading of the executable
which means it has to handle the msvcrt.dll
resolution, and it does this by providing hooks
to the same (PDPCLIB under Linux) CRT, such that
the CRT is called recursively.

The CRT knows the recursion level and does
certain Linux-relevant things on the first
recursion, then switches to Windows for some
minor things (parameters).

I don't have a 64-bit version. This would require
either Linux to be recompiled with MS calling
conventions or some extra glue to switch calling
convention when used to load a 64-bit msvcrt-based
executable.

All available at http://pdos.org - search for
win32lin. And the same thing for OS/2 - win32os2.
Note that OS/2 is commercially supported in the
form of ArcaOS and likely has much better support
than the "free" version of Windows that shipped
with your PC.

BFN. Paul.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor