Adriaan van Os wrote:
Maybe, some of you have any experience cross-compiling for Wintel.
Not "Wintel", but {Linux, DJGPP} -> {Linux, DJGPP, Solaris}.
Suppose, I build a cross-compiler (running on Mac OS X) that compiles Windows code for i386.
(1) Do I need a cross-linker too ?
Yes (and assembler). Build a cross version of the binutils.
How does the linker know about Win32 DLLs and LIBs to link with ?
You must provide them, also some C system headers, usually in <prefix>/<target>/<include|lib>.
(2) Do produced executables run as native Windows GUI programs or DLLs (without a UNIX compatible shell installed) ?
AFAIK yes -- they should require no more and no less than natively compiled programs. I don't know what this is for Mingw (if anything); for DJGPP (Dos), it's only cwsdpmi for systems that don't have a suitable DPMI driver.
(3) Same question for DOS programs.
Same answers. ;-)
(4) Are there any GPC Pascal interfaces to the Win32 API ?
Yes, but the Chief can tell more about this.
(5) What about cross-debugging with two machines ?
Never tried this. gdb has some remote features, but I don't know how well they work.
Frank