Compiled TFM files are too big. How to reduce it?
Moderator: Stef
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
Compiled TFM files are too big. How to reduce it?
All .o files compiled from .tfm are about 33-36kB, no matter its original size. Isn't it too much? How can I reduce it?
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
You just need to modify the makefile.gen file :
Replace
with
and it should reduce dramatically the size of your rom, but it may broke the TFM driver.
Do you use the 68k driver or the Z80 one ?
Replace
Code: Select all
%.s: %.tfc
$(BINTOS) -align 32768 $<
Code: Select all
%.s: %.tfc
$(BINTOS) $<
Do you use the 68k driver or the Z80 one ?
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
Yep, it broke the driver.Stef wrote:You just need to modify the makefile.gen file :
ReplacewithCode: Select all
%.s: %.tfc $(BINTOS) -align 32768 $<
and it should reduce dramatically the size of your rom, but it may broke the TFM driver.Code: Select all
%.s: %.tfc $(BINTOS) $<
I dunno Just use SND_startPlay_TFM()Stef wrote:Do you use the 68k driver or the Z80 one ?
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
Code: Select all
void TFC_init(const u8*);
void TFC_frame(void);
void TFC_play(u16);
Isn't it z80_tfm.s80 file?Stef wrote:I don't know if the driver source is available somewhere
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact:
-
- Very interested
- Posts: 117
- Joined: Sun Jan 02, 2011 9:14 pm
- Contact: