Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

rebuilding NASM 0.98.39 (2005) for 16-bit 8086 host (Developers)

posted by Rugxulo Homepage, Usono, 16.03.2020, 01:24

> Probably I need to go in (insns.pl??) and disable anything past 586.
> (Why bother with SSE2 in such a limited environment?)

Assuming that was intentional, by design, and not bugged, I used AWK to modify insns.dat to avoid anything past 586. Then I used (DJGPP Perl) insns.pl to rebuild some sources (see makefile.in). Then NASM still compiled okay (with TC++) but crashed when run (invalid opcode) without warning, even when used with no args. So either I'm misunderstanding or it needs even heavier fixing.

Should I rebuild 0.97 instead? Not quite as good (no size optimizations via -O3), but at least it's smaller (586/MMX only). But there's probably all kind of old bugs. (IIRC, the prebuilt DOS binary included all output formats, ugh, such a waste of RAM.) N.B. I already used AWK to read the .LST and auto-fix the source of PSR Invaders so that NASM 0.97 will 100% match in size optimizations, but that's quite a kludge.

> Rebuilding the FreeDOS kernel ran out of memory (Turbo C++ build only), but
> apparently it works when not run under WmakeR. So the bloody Make program
> is eating too much (scarce) conventional RAM!

A quick look at the (OW 1.9) Tools manual didn't show anything about Make swapping. Probably it isn't supported or wasn't a huge priority. I haven't looked into 2.0-pre, but it's probably no improvement.

Turbo C++ 1.01 (Make 3.0?) has .SWAP (or -S option) to swap to disk (saving 50k of low RAM). DMake (4.00pl2?) lets you put % before commands to do the same (saving about 100k of low RAM).

> Also, it's annoying that it doesn't even tell you how much
> memory was free, how much was used, nor how much was unsuccessfully
> (mis)allocated. I haven't checked closely to see what debug hooks or
> instrumentation they included

-DLOGALLOC writes to malloc.log (big!), but I'm not sure that's quite what I wanted to know either.

 

Complete thread:

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