Hi!

18-Янв-2007 11:31 [EMAIL PROTECTED] (Japheth) wrote to
freedos-user@lists.sourceforge.net:

>>      Better than watcom? How much better and in which areas?
J> In Open Watcom just the 32bit C(++) compiler and WD are pretty good. The rest
J> is of "mixed" quality.
J> With optimisation on MSVC CL.EXE beats OW WCC.EXE significantly both in speed
J> and binary size (not counting the CRT part).

     May you show examples? Starting from minimal "void main(){}", then with
printf("Hello, world!\n"), then something more complex? With OW 1.6:

>type test1.c
void main () {}
>wcl test1.c
Open Watcom C/C++16 Compile and Link Utility Version 1.6
       wcc TEST1.C
Open Watcom C16 Optimizing Compiler Version 1.6
Code size: 7
       wlink @__wcl__.lnk
creating a DOS executable

>type test2.c
#include <stdio.h>
void main () { printf ("Hello, world!\n"); }
>wcl test2.c
Open Watcom C/C++16 Compile and Link Utility Version 1.6
       wcc TEST2.C
Open Watcom C16 Optimizing Compiler Version 1.6
Code size: 17
       wlink @__wcl__.lnk
creating a DOS executable

>dir *.exe
TEST1    EXE         1 196
TEST2    EXE         8 736

Issue here is only in fat RTL.

J> One reason for this might be: although the OW 16-bit compiler WCC has
J> switches
J> to optimize for 386/486/Pentium/PPro it doesn't seem to use the 32-bit
J> registers if one of these switches is set.

     ?! Using 32-bit instructions in 16-bit programs may be useful, but this
is another story. How this relates to difference in generating 16-bit code?

J> The one 32bit opcode I was able to
J> find is the "PUSH dword ptr [x]" to push an (unsigned) long parameter for a
J> function call.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to