Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Code size as a ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 2360 of 2472
Post > Topic >>

Code size as a function of source size

by =?ISO-8859-1?Q?J=FCrgen_B=F6hm?= <jboehm@[EMAIL PROTECTED] > Mar 12, 2008 at 08:28 PM

Hi,

I would like to pose a very simple question, for which nevertheless I
could not find an answer through google:

   Of what general type is the dependence of the size of compiled code
to the size of the respective source code?

   Or to put it "mathematically", what function f(s) approximates the
points (s, o(s)) best, where s is the size of the source code (say in
bytes and normalized by removing commentaries and not using uncommonly
long identifiers or amounts of white space) and o(s) is the size of
the corresponding object code (without any libraries linked in).  It
seems natural to assume a linear dependence, but maybe the point-cloud
(s,o(s)) introduced above falls into several sub-clouds, each having
its own characteristic function?

  The reason I am asking is, that I wrote a little Lisp compiler for a
CPU that I developed and doing some comparisons as indicated above, it
seemed to be a linear relation****p with o(s) approx. 1.75 * s.
   Now I would of course like to do some comparisons with other
compilers (not necessary only Lisp compilers) for other architectures,
but I could not find any figures tabulated on the net. Does anyone have
some pointers?

Thanks in advance for all answers

J|rgen

--
J|rgen Bvhm                                            www.aviduratas.de
 




 4 Posts in Topic:
Code size as a function of source size
=?ISO-8859-1?Q?J=FCrgen_B  2008-03-12 20:28:20 
Re: Code size as a function of source size
Marco van de Voort <ma  2008-03-14 10:30:09 
Re: Code size as a function of source size
Barry Kelly <barry.j.k  2008-03-14 14:55:39 
Re: Code size as a function of source size
Sid Touati <SidTouati@  2008-04-22 11:24:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 14:27:56 CDT 2008.