Thanks for your answer, but the problem is that i can't even compile the .rock since
i get that error at compile time. I will try to remove all the static arrays to see if that helps.
There is one big array that takes a lot of space, it's something like this:
struct cputbl op_smalltbl_0[] = {
{ op_0_0, 0 }, /* OR */
{ op_10_0, 16 }, /* OR */
{ op_18_0, 24 }, /* OR */
{ op_20_0, 32 }, /* OR */
{ op_28_0, 40 }, /* OR */
{ op_30_0, 48 }, /* OR */
{ op_38_0, 56 }, /* OR */
{ op_39_0, 57 }, /* OR */
{ op_3c_0, 60 }, /* ORSR */
{ op_40_0, 64 }, /* OR */
{ op_50_0, 80 }, /* OR */
{ op_58_0, 88 }, /* OR */
{ op_60_0, 96 }, /* OR */
{ op_68_0, 104 }, /* OR */
{ op_70_0, 112 }, /* OR */
{ op_78_0, 120 }, /* OR */
{ op_79_0, 121 }, /* OR */
{ op_7c_0, 124 }, /* ORSR */
{ op_80_0, 128 }, /* OR */
{ op_90_0, 144 }, /* OR */
{ op_98_0, 152 }, /* OR */
{ op_a0_0, 160 }, /* OR */
{ op_a8_0, 168 }, /* OR */
{ op_b0_0, 176 }, /* OR */
...
{0,0}};
It has around 1800 cputbl structures defined like this:
struct {
func_ptr handler;
short opcode;
} cputbl;
I was thinking of writing the array data to a file and reading it at
run time, but the problem are the function pointers.
Also i'm not sure if all the m68k opcodes are used by the delitracker players (?),
if only we could recuce the m68k emu size (cpuemu.c).
P.S. i am already using the audio buffer since the whole plugin needs
a couple of MB of memory to work.
P.P.S. If anyone would like to take a look at the code please PM me. I even have a
devcpp project to test UADE under windows.