Mail Archives: djgpp/2012/11/21/16:00:10
Hi,
On Wednesday, November 21, 2012 3:09:28 AM UTC-6, Dirk Zabel wrote:
>
> I have for years used DJGPP on a Windows XP environment; as part of an
> ongoing development project I used bison and flex to generate a compiler
> for a domain-specific language.
>
> Now I am changing to a Win 7-X64 bit machine, and I see my old
> djgpp-compiled exe-files don't run any more.
Do you just want to run the DOS binaries (only real DOS? also Windows?), also cross-compile, or just natively target your current OS (Windows)?
If you want to stick with DOS (my preference but unlikely yours), you could use VirtualBox (esp. if cpu supports VT-X) or MS Virtual PC (aka WinXP Mode, if your Win7 is Business or Enterprise or whatever).
Or you could use Linux + DOSEMU (even under x86-64). Or just (dual) boot FreeDOS natively.
> Has anyone an idea on how to proceed? I know there are cygwin and mingw,
> but I don't have experiences with any of them. As far as I can say from
> the mingw homepage, bison and flex are not included. So any good advice
> on how to get a running gcc+bison+flex environment for Win 7-X64 would
> be very welcome.
If you're really dependent on GNU tools or POSIX support or similar, then I guess those are your best bet (assuming you don't stick with DJGPP). Doesn't even MinGW have an installer now? So they're probably similarly easy to keep updated.
I've only got limited experience with MinGW, but Cygwin seems somewhat better, though their fairly heavy updates every so often is bad if your connection isn't very fast. (7-Zip or XZ would be better than Bzip2.) Though I guess MinGW is friendlier to closed source projects?
P.S. OpenWatcom is a nice, integrated suite of tools, nice for cross-compilation or native support, etc. but isn't as POSIX friendly. I vaguely remember them having some sources to some POSIX tools (byacc, etc.) in their sources archive, but it's not built by default, and I don't know the details on whether you just need old yacc/lex or newer features.
- Raw text -