Date: Fri, 12 Jun 2009 10:55:18 -0600 From: cpghost <cpghost@cordula.ws> To: Antonio Gonz?lez Castro <agoca80@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: RFC: C version of devd daemon. Message-ID: <20090612165518.GA15530@phenom.cordula.ws> In-Reply-To: <538f43900906120823w388f1c63ic8d0194017faca6d@mail.gmail.com> References: <538f43900906120823w388f1c63ic8d0194017faca6d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 12, 2009 at 03:23:47PM +0000, Antonio Gonz?lez Castro wrote: > Hi, I'm not sure this is interesting or useful, but I translated devd daemon > from C++ to C. Why would you want to do that? IMHO, the code in /usr/src/sbin/devd/devd.cc is beautiful, concise and very readable. > Is it useful for something, or have I been wasting my time for nothing? What's the size of your C version of /sbin/devd? The statically linked C++ version is 402080 bytes on my amd64 system: % ls -l `which devd` -r-xr-xr-x 1 root wheel 402080 May 4 10:24 /sbin/devd and it will probably be less if written in C. That's the only advantage I see in translating C++ code to C code. For everything that's dynamically linked, I don't really see the point (with the exception of very few special cases). -cpghost. -- Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090612165518.GA15530>