----- Original Message ----- > From: Steve Nickolas > To: Technical discussion and questions for FreeDOS developers. > <[email protected]> > Cc: > Sent: Friday, July 18, 2014 11:21 AM > Subject: Re: [Freedos-devel] FreeDOS JetDirect driver (was: Getting started) > > On Fri, 18 Jul 2014, Rugxulo wrote: > >> Hi, Jim, >> >> On Fri, Jul 18, 2014 at 10:26 AM, Jim Michaels <[email protected]> > wrote: >>> >>> a windows version of DJGPP is in the wings, based on cygwin I think. > there's an alpha you can compile with cygwin. >> >> This is so wrong that I don't even know where to begin. >> >> DJGPP only runs on DOS (or similar like NTVDM or DOSEMU). It does not >> use PE/COFF at all, nor DLLs, nor Win32 APIs.
I know about PE's they are for windows - the DJGPP compiler you are compiling itself will likely compile to a PE, but the code it generates/targets is dos i386 and not a PE. don't worry. let me explain. cross compilers like DJGPP have 2 things, a host and a target. the target is the OS/cpu that will run the program. the host is the os/cpu combination that will run the compiler. you can host on windows and target for android on ARM7 cpu (or FreeDOS with FAT32!) with gcc (provided proper runtimes etc - that's where most of the compiler dev time is I would guess, making the runtimes and customizing libs to be os-specific). for DJGPP, the host for the current stable version right now is windows XP or DOS on i386 and the target is DOS i386. the new alpha cygwin DJGPP compiler's host is I think any version of windows possibly even x64 cpu - it must be compiled right now, a binary may be later. the target is still DOS i386 to my knowledge. the cygwin-compiled version just allows folks who have 64-bit windows to compile DOS programs (so they can run them on a VM or whatever, I highly suggest windows 8/8.1 for VM stuff since those versions of windows can share .VHD files' filesytem with windows like a drive and this makes development a snap! - I may have to upgrade my windows now that win8 is more stable - I can work around the flaws just to get that feature... xp mode was never stable and now it's supported no more - mo more fixes to its bugginess and crashes - I really wanted to run dos stuff on it! but it looks like vbox+win8 for me pretty soon...) besides, win8/8.1 has the free hyper-v VM and hyper-v VM server as well (both free). no worries. :-] get used to the host+target concept in cross compilers, you may run into it sometime. >> >> Sure, you can have some kind of bound / family (or whatever) .EXE that >> can run on two OSes (RSXNT). Sure, with other compilers (like >> OpenWatcom), you can use external API emulation (e.g. HX). Sure, you >> can use GCC to cross-compile from one OS to another. And yes, both >> Cygwin and DJGPP use GCC + BinUtils, but everything else is different >> (especially the libc). >> >> I don't know who told you that DJGPP was ever interested in Windows. >> If you have proof of that, I'd like to see it, but I'm not holding > my >> breath. :-) > > Prolly thinking MinGW? > > -uso. not mingw. DJGPP. anyway, mingw has been dropped in favor of mingw-w64 since it targets both 32 and 64-bit windows (and also has compilers for darwin/mac, linux, etc, but those are target=host). the windows compilers both target and host windows, and have 4 flavors (and are built on fedora I think?), (just count in binary to list them): i686 host, i686 target i686 host, x86_64 target x86_64 host, i686 target x86_64 host, x86_64 target MSVC also comes with like compilers (each in a separate dir). ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
