I looked a little on the API declared by Sanos and I think that it would probably be easier to use our Unix targets to get a reasonable support for this OS rather than trying to use the Win32 subset. The C API seems to be far more extended than the small Win32 emulation layer.
Otherwise you will really need to strip the RTL down a lot: Do not rely on exported function in DLL's looking into sources, you will discover that lots are only pseudo implementations doing nothing. See for instance SetConsoleCtrlHandler implementation in: http://www.jbox.dk/sanos/source/win32/kernel32/kernel32.c.html SetConsoleCtrlHandler is the central function used inside Windows RTL to support exceptions on that target... Using signals.pp unit might help for this particular problem as thread specific exceptions with thread information block seems to be supported (but I didn't test it). Pierre > -----Message d'origine----- > De : fpc-devel-boun...@lists.freepascal.org [mailto:fpc-devel- > boun...@lists.freepascal.org] De la part de Mark Morgan Lloyd > Envoyé : jeudi 24 mars 2011 11:27 > À : fpc-devel@lists.freepascal.org > Objet : [fpc-devel] FPC for minimal Win-32 > > I'm currently looking at the potential of a minimal Win32-compatible OS > called Sanos, which supposedly implements a useful subset of the Windows > console-mode API. As a starting point, I'm using the standard Windows > variant of the FPC compiler, but if I build a minimal program (i.e. > program test0; begin end.) the executable requires the oleaut32 DLL > which is not implemented. > > Is there an easy way to break this requirement, or do I need to hack and > rebuild FPC? If the latter is feasible, could somebody give me a hint > where to start? > > -- > Mark Morgan Lloyd > markMLl .AT. telemetry.co .DOT. uk > > [Opinions above are the author's, not those of his employers or colleagues] > _______________________________________________ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel