Searching \ for 'C programming question on Linux: How to make Flex-' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devprogs.htm?key=programming
Search entire site for: 'C programming question on Linux: How to make Flex-'.

Truncated match.
PICList Thread
'C programming question on Linux: How to make Flex-'
1998\08\29@084151 by Peter L. Peres

picon face
The question is in the $SUBJ. I have a certain piece of software
(assembler) that uses Flex. The source is ~500-1000 lines and should yield
a 60-70k executable (ok, maybe 120k). There are no static tables, no
recursive mallocs etc.

This code compiles to 350k + dynamic ELF ! I have tried every optimization
flag of the linker and compiler in turn, nada. First I had thought it is
statically linked, but, nada, it's dynamic.

So, before I remove Flex from my horizon permanently, can I have your
opinion on this ?

Peter

PS: The program must be small because it will live on a floppy.

1998\08\31@045324 by Mal Goris

flavicon
face
Peter L. Peres writes:

> The question is in the $SUBJ. I have a certain piece of software
> (assembler) that uses Flex. The source is ~500-1000 lines and should yield
> a 60-70k executable (ok, maybe 120k). There are no static tables, no
> recursive mallocs etc.
>
> This code compiles to 350k + dynamic ELF ! I have tried every optimization
> flag of the linker and compiler in turn, nada. First I had thought it is
> statically linked, but, nada, it's dynamic.
>
> So, before I remove Flex from my horizon permanently, can I have your
> opinion on this ?

Possibly it is full of symbols and/or debug info. Run strip on your
binary to remove them.

Mal
--
Netherlands Foundation for Research in Astronomy
http://www.nfra.nl/~mgoris/
Phone:  +31 521 595 286 (work)                  Fax: +31 521 597 332
       +31 528 274 156 (home)

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...