www.digitalmars.com         C & C++   DMDScript  

c++.dos.16-bits - Size optimization

reply Ploumen Loic <Ploumen_member pathlink.com> writes:
Hello,

Can someone tell me how I can reduce .exe size at its maximum? I'm programming
an httpd server on an embedded system, so size does matter a lot... 
Thank you
Apr 04 2003
parent roland <--rv ronetech.com> writes:
Ploumen Loic wrote:

 Hello,
 
 Can someone tell me how I can reduce .exe size at its maximum? I'm programming
 an httpd server on an embedded system, so size does matter a lot... 
 Thank you
 
 
 

The idde tels me: -o+space options Compile for the right cpu, choose the right memory model. Try DOSX 32 bit memory model ( -mx ): on one way, exe tend to be bigger as your objs have to be linked with a "loader" and a special lib. On the other way generated code tend to be smaller, more eficient and faster. Try roland
Apr 05 2003