Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Compilation speed with GCC (Developers)

posted by Rugxulo Homepage, Usono, 21.06.2008, 01:04

> I haven't tested speeds, so I can't say for sure. But even if it ran
> faster on a 586, it might not run faster on newer cpus (e.g. AMD64 or Core
> 2). It's very complicated to optimize for several (micro?-)architectures.

Well, I did a single test on ye olde P166 (no MMX, F/M/S: 5/2/C) w/ total 32 MB RAM, running DR-DOS 7.03, using UIDES (5 MB) and %TMPDIR% pointing to a 3 MB RAM drive. And I tried recompiling TDE 5.1v with "-O0" (GCC 3.4.4, DJGPP 2.04). And yes, I ran "cc" (clear cache) before each compile. "lh cwsdpmi -p -s-" and "lh hdpmi32 -r" were used before beginning. (Note that TDE 5.1v has a fair amount of separate .C files to compile, so I figured this was a fair way to test since a single-file .CPP didn't seem to show any difference.)

CWSDPMI r5 "testing" (2002): Elapsed time: 166.700 seconds (0:02:46.700)
HDPMI32 from latest HXRTD.ZIP: Elapsed time: 160.930 seconds (0:02:40.930)

So, yes, HDPMI32 is faster (approx. 4%). However, it may be the opposite (by accident) on a PII, P4, AMD64, Core 2, etc. More testing welcome. :-P

 

Complete thread:

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