mTCP Updates (2010-06-21)
Posted: Mon Jun 21, 2010 8:55 pm
The latest mTCP applications have just been posted at http://www.brutman.com/mTCP !
For this release I ported the code from Turbo C++ 3.0 for DOS to Open Watcom 1.8. Turbo C++ has been my preferred compiler for years but I was a little disappointed with the quality of the code being generated. It was correct, but certainly not high performance. One of the major reasons for writing my own TCP/IP is to have the best performance possible, so being hindered by the compiler is no fun.
Open Watcom 1.8 is generally a winner, and for a few reasons:
This release also represents an important milestone. This code is the first version to break the 100KB/sec barrier on my PCjr. Using a Western Digital 8003 card I was able to run a throughput test and see TCP/IP sends at 108KB/sec and receives at 112KB/sec. When I first got TCP/IP sockets working 2 or 3 years ago getting 50KB/sec was tough ... and now on the same machine I have doubled the performance. (Additional performance numbers can be found here: http://www.brutman.com/mTCP/mTCP_Performance.html )
If you haven't tried mTCP out, it has FTP, Telnet, IRC, Netcat, Ping, and a DHCP client. It runs on almost any machine you can dig up, it only requires 256KB, and it doesn't waste CPU cycles. There are some screen shots and a video on the web page if you want a preview.
And of course, it runs great on a PCjr ;- )
Enjoy!
Mike
For this release I ported the code from Turbo C++ 3.0 for DOS to Open Watcom 1.8. Turbo C++ has been my preferred compiler for years but I was a little disappointed with the quality of the code being generated. It was correct, but certainly not high performance. One of the major reasons for writing my own TCP/IP is to have the best performance possible, so being hindered by the compiler is no fun.
Open Watcom 1.8 is generally a winner, and for a few reasons:
- The mTCP applications saw a performance improvement of anywhere from 2 to 11%
- The size of the executable files went down quite a bit. For example, Telnet shrunk to 77KB from 89KB.
- The compiler runs natively on Windows, letting me use a much faster machine for compiles, editing, looking up docs, etc.
- Open Watcom is open source and is actively maintained.
This release also represents an important milestone. This code is the first version to break the 100KB/sec barrier on my PCjr. Using a Western Digital 8003 card I was able to run a throughput test and see TCP/IP sends at 108KB/sec and receives at 112KB/sec. When I first got TCP/IP sockets working 2 or 3 years ago getting 50KB/sec was tough ... and now on the same machine I have doubled the performance. (Additional performance numbers can be found here: http://www.brutman.com/mTCP/mTCP_Performance.html )
If you haven't tried mTCP out, it has FTP, Telnet, IRC, Netcat, Ping, and a DHCP client. It runs on almost any machine you can dig up, it only requires 256KB, and it doesn't waste CPU cycles. There are some screen shots and a video on the web page if you want a preview.
And of course, it runs great on a PCjr ;- )
Enjoy!
Mike