Blame | Last modification | View Log | Download | RSS feed
All right, I couldn't resist to port the C version back to DOS. It wastricky, and I had to fight again all the limitations and bullshit MS-DOSbrings. For porting, I used Borland C in version 3.1 . Older versionsmight work also, but you will probably have to take out a lot of codegenerator modules if your version of Turbo/Borland-C does not offeroverlays. Porting to compilers from other manufacturers is probably notimpossible, but surely more effort than buying a used copy of BC3.1...Don't bother with the dozens of warnings issued by the compiler concerningunused parameters: Things have to be like that since functions are calledvia pointers and some functions need the parameters and some not. Theremust be a switch somewhere to silence the compiler..Copy 'Makefile.dos' to 'Makefile' and move the 'makedef.dos' (I hate this8+3 limit!) to 'Makefile.def'. Compiling and test run should then workas usual. Assure that you have at least 600 Kbytes of free DOS memoryor otherwise the larger tests might fail! For the DOS platform, theCKMALLOC symbol is defined to automatically check for out-of-memoryconditions. The 'wrapped' functions are malloc(), realloc(), and strdup().There must be a function missing, since AS still occasionally crashes whenhe runs out of memory....Compiling for DOS protected mode is also possible. Use the 'makedef.dpmi'as 'Makefile.def'. I tested this with Borland-C 4.5 and the Powerpack forBC 4.X .