0 Members and 2 Guests are viewing this topic.
* Disable document screen refresh on exit, it made exiting too slow.
Quote from: calc84maniac on August 06, 2012, 11:14:59 pm * Disable document screen refresh on exit, it made exiting too slow.What exactly were you refreshing ? The whole file system or just the My Documents menu ? Because that would be useless to refresh anything else than the My Documents menu and maybe that was why is was slow ?
The main "secret" is that I used the ELF loader created by tangrs (with some modifications because it didn't catch all relocation cases) to load my generated ELF file into memory for execution. This solves lots of problems with global variables and such, and I was also able to force it to load to an address aligned to 32 bytes, which Ndless doesn't do. That's why there is a launcher file and a resources file, the latter is actually just an ELF.
Quote from: calc84maniac on August 09, 2012, 10:35:26 amThe main "secret" is that I used the ELF loader created by tangrs (with some modifications because it didn't catch all relocation cases) to load my generated ELF file into memory for execution. This solves lots of problems with global variables and such, and I was also able to force it to load to an address aligned to 32 bytes, which Ndless doesn't do. That's why there is a launcher file and a resources file, the latter is actually just an ELF.I suppose the alignment requirement isfor a screen buffer array, and that tangrs's BFLT loader doesn't support 32-bytes alignment? I? Does ELF allow to define this on a per variable basis?
calc84maniac, would the integration of tangrs's BFLT loader to Ndless make the emulator lighter (there's a patch ready for it, and its much more simple that the ELF loader), even if you still need to align the malloc yourself? (I'm not sure if making a 32-byte alignment the default in Ndless would make sense for all programs).