Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Dev86DOS 0.16.18 (DJGPP host) (Developers)

posted by Rugxulo Homepage, Usono, 18.04.2012, 01:54

> P.S. There is also apparently the "-f" option to add float support, but I
> haven't tried rebuilding BWBasic again yet

No, apparently it can't find libc+f.a [sic], which I'm not sure fully exists (or maybe only 386 target??? No, that's libfp.a, apparently, and isn't available in default builds). *shrug* Can't find any obvious mention of it otherwise.

Anyways, what I discovered is ...

"-Md" is for DOS .COM, which indeed is limited to 65000 byte size but BSS and stack can allegedly grow in RAM up to 64k beyond that.

"-Mn" is native 16-bit ELKS Linux a.out output for elksemu, doselks, etc.

"-Ml -N -3" seems to (except on DOS host) correctly produce a runnable 386 Linux binary, though trying to use it with -O clashes because it gets confused (rules.i386 [sic] not found). Also, at compile time, #ifdef MSDOS is used and thus it doesn't quite work cross-compiling from DOS/DJGPP because ld86 is always stripping the header. This seems to be due to weird understanding of -N ("native") and -d ("headerless output") where "native" means different things to different OSes (see ld/ld.c and ld/writex86.c). Honestly, it would've just been easier to my eyes to just name everything according to target OS, similar to OpenWatcom's -bt=dos or -bt=linux with -l=dos or whatever.

EDIT: "-Mn -3" doesn't strip the a.out header but instead gives it "Minix-386" properties, so it won't run in Linux. Argh.

"-Ms" is indeed "standalone" outputting a.out using BIOS calls only, and adding "-d" makes it headerless.

I've never rebuilt nor used bootblocks (nor used either as86 or ld86 elsewhere), so perhaps that's why I didn't understand the terminology used here.

And I'm still unsure of this stuff and my own understanding here, so I don't know, but at least it's something (I hope).

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 183 users online (0 registered, 183 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum