[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Compiling Lua for uClinux create larger file than expected
- From: Mike Crowe <mike@...>
- Date: Tue, 19 Oct 2004 22:09:31 -0400
Hi folks,
This is most definitely my problem, but I'm trying to embed Lua in a
custom soft-core called NIOS. I have it compiling fine (haven't tested
yet), but the size looks ridiculous. Here's what I'm currently seeing
(under cygwin):
MCrowe@MCrowe lua $ l lib
total 128
-rw-rw-rw- 1 MCrowe mkpasswd 130638 Oct 19 21:59 liblua.a
-rw-rw-rw- 1 MCrowe mkpasswd 92316 Oct 19 21:59 liblualib.a
MCrowe@MCrowe lua $ l bin
total 395
-rw-rw-rw- 1 MCrowe mkpasswd 403948 Oct 19 21:59 lua
MCrowe@MCrowe lua $
I'm sure it's a compile/linker issue, but it is not intuitively
obvious. Here's the flags:
CC = nios2-elf-gcc -c -O2 -fomit-frame-pointer -pedantic -Wall
-I(...)/include -D__linux__ -I./include -I. -I..
LDFLAGS = -Wl,-E -msys-crt0=(...)/crt0.o -r -d -L(...)/lib/ -lc
Does anybody see anything flagrant that I am missing?
TIA
Mike