GNUDE Vs ARM Database code - Strange difference | developer.brewmp.com GNUDE Vs ARM Database code - Strange difference | developer.brewmp.com

Developer

GNUDE Vs ARM Database code - Strange difference

I have an app that writes a few entries to the database which it later retrieves on app restart. It works great when the mod file is created using ARM. Same code when compiled with Gnude, the mod file behaves stragely. The strange difference is GNU-based mod file creates a database of size 124 bytes and all entries are not written-- whereas the ARM mod file creates a databse of size 204 bytes with all the entries.

All the rest of the functionality in the application is neutral to whether it is a GNU Mod file or ARM generated Mod file.

ANY POINTERS ?

It's possible the size of structs in your program differ -- depending on compiler. In the GNU compiler it sounds like it is going more struct packing than the ARM compiler is.
Try compiling without the switch '-fshort-enums'.
See if that helps..

It's possible the size of structs in your program differ -- depending on compiler. In the GNU compiler it sounds like it is going more struct packing than the ARM compiler is.
Try compiling without the switch '-fshort-enums'.
See if that helps..