Wire library replacement?

Our program becomes larger and larger, it using now 65% of dynamic memory .
We also have an adxl345 sensor which speaks in i2c .

We could see that its enough to only include the library : #include <Wire.h> , and our whole program just starts doing strange things related to memory issues .

I know, you "must see" my program, but since its more or less 10 full pages of code, i dont think putting it here would benefit .

So , i was wondring, if everything works just great before we include that wire library ( without even using it) , what can we do to communicate with this chip via i2c ?

What board are you using, 65% of 2K != 65% of 8K

The Wire library allocates about 150 bytes, so you can be close to RAM limit on an UNO. Note the % given is the RAM used by global vars IIRC.

You can attach the code as zip file too. Maybe we see some constructs that use too much memory.