On Fri, 16 Jun 2000, Mo DeJong wrote:

> On Fri, 16 Jun 2000, Thomas E. Dickey wrote:
> 
> Because earlier in the test ac_cv_prog_cc_g_bigger is set to the
> length of the output of od.

so you aren't planning to use this on machines whose shell breaks for
variables longer than 4k (or 1k ;-).
 
> > Better to simply run a test program that uses only stdio.h (checking if
> > opening the object file in binary mode works ;-)
> 
> That might not be a bad idea. I don't like to depend on od just
> to get the size of a file. Am I just missing something? Is there
> an easy way to figure out the size of a binary file in bytes?
> 
> `ls` or `ls -S` is not going to cut it.

I'd write a simple program and use it to measure the size with/without
debug option by counting bytes (even a 'stat()' call can return misleading
size)

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com

Reply via email to