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

Re: [MiNT] Packages needing rebuild for SpareMiNT???



I am trying to see what the stack is doing. At the end of
make I got this:

stack --fix=512k highwire.app
stack size: 65536 bytes (64 kilo bytes).
Fixed stack to 524288 bytes (512 kilo bytes).
flags -g -v highwire.app
Current flags: 0x00000017 (were 0x00000007).

So I changed the make file to this:

LDFLAGS = --stack,512k
.
.
.
$(TARGET): $(OBJS)
    $(LD) -o $@ $(CFLAGS) $(OBJS) $(LIBS)  $(LDFLAGS)
    flags -g -v $@


Which changed the link to:

EI.o obj.040/HighWire.o obj.040/strtools.o obj.040/clipbrd.o -L/usr/GEM/lib -lgem -lcflib -liio
 -lungif -ljpeg -lpng -lz -lm -lutf8   --stack,512k
flags -g -v highwire.app
Current flags: 0x00000017 (were 0x00000007).
  Fastload flag is set (heap doesn't get cleared).
  Altload flag is set (load into alternate RAM).
  Altalloc flag is set (allocate memory from alternate RAM).
  Program's memory is not protected at all (globally accessible).

So I inspected the binary and then changed it's stack:

bash-2.05a# stack highwire.app
stack size: 65536 bytes (64 kilo bytes).


bash-2.05a# stack -S 512k highwire.app
stack size: 65536 bytes (64 kilo bytes).
Fixed stack to 524288 bytes (512 kilo bytes).

bash-2.05a# stack highwire.app
stack size: 524288 bytes (512 kilo bytes).


Peter