[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C programming question on Linux: How to make Flex-based binary small? (fwd)





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.