lua-users home
lua-l archive

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

On Thursday 03 November 2005 11:59, Luiz Henrique de Figueiredo wrote:
> > The traditional thing to do with C in this case is to run the source
> > through a cruncher; this will strip out comments and whitespace, and
> > the really good ones will rename all your identifiers to be as short
> > as possible.
> My ltokens library has a lstrip tool which strips comments and whitespace,
> but does not do renaming.

Ah, thanks. I'll try it.

> Try luac -s.

I'd forgotten about that; the compiled out is now smaller than the source, but 
not by much --- the source (after gzipping) is 5322 bytes, and the compressed 
binary is 4805 bytes. I suspect that lstrip would do better.

+- David Given --McQ-+ "Opportunity is missed by most people because it's
|    | dressed in overalls and looks like work." ---
| ( | Thomas Edison
+- --+ 

Attachment: pgp6Mp4EO0J54.pgp
Description: PGP signature